Closed awf closed 3 years ago
@cgravill called this "moving from string typing to strong typing", which I found very amusing.
I've found a lot of incidental programmers much happier with F#/Fable (than JavaScript) once we started using more typing features. Combined with the excellent Elm(ish) approach it lets them concentrate on mapping domain types to a visualisation without worrying they're breaking the infrastructure programming.
Sorry, missed the notification! This is a good change, I think the string remained from the original React example we converted. Thank you!
Thanks!
When viewing this sample, I thought it might be nice to remove the "_" match on (old) line 176. To do so, I thought it might be nicer to use a discriminated union instead of strings to indicate state. Hence this PR -- I hope you like it :) All comments very much welcome -- I am a distinct newbie.