3 ms·
...Don't have hanging conditionals... One of the nice things about F#'s pattern-matching is that it will not allow you to do this. It's amazing the number of b
by DanielBMarkham 15y ago
...Don't have hanging conditionals...
One of the nice things about F#'s pattern-matching is that it will not allow you to do this. It's amazing the number of bugs you can avoid like this.
- chc 15y agoFrom what I've seen, F# seems like a really nice language. It looks like the best of the MLs. If only it weren't so tied to the Microsoft stack and seemingly relegated to a supporting role for C#.
- mmavnn 15y agoIt has active Mono support as well (even from inside MS). The Monodevelop support is pretty good too. I code in F# on Ubuntu regularly.
- shanselman 15y agoThe whole of F# is open source AFAIK. Used on Linux and in schools a lot.
- oconnor0 15y agoWhat are you pattern-matching on? At least in OCaml you can do "if (test) then a else b", and I assume that holds for F#. Are you talking about "if (test) then a" without the "else b" clause? Because, while I agree that using only "if-then" introduces the potential for many bugs, the error talked about wasn't caused by that.