(no title)
Foofoobar12345 | 11 months ago
Pro tip: don't write F# like you would write C# - then you might as well write C#. Take the time to learn the functional primitives.
Foofoobar12345 | 11 months ago
Pro tip: don't write F# like you would write C# - then you might as well write C#. Take the time to learn the functional primitives.
arwhatever|11 months ago
Whereas in C# you have to do like
And C# will let you know if you omit the `else` on accident ...Except that most C# developers do
to get the red squiggly to go away while they type the rest of the code, unknowingly subverting the compiler's safety check.This doesn't seem like a big deal given these examples. But it becomes a much bigger deal when the if/else grows super large, becomes nested, etc.
DeathArrow|11 months ago
bar = foo switch
{