3 ms·
Could you post any comparison code demonstrating the terseness, or suggest a good site that might demonstrate this?
by mistermann 12y ago
Could you post any comparison code demonstrating the terseness, or suggest a good site that might demonstrate this?
- gagege 12y agoHere's a humorous take on F#'s terseness: http://www.slideshare.net/ScottWlaschin/c-light http://www.slideshare.net/ScottWlaschin/c-light
- marpstar 12y agohttp://fsharpforfunandprofit.com/posts/classes/ http://fsharpforfunandprofit.com/posts/classes/ starts off with a C# vs. F# class declaration example. Particularly when you want to create a class with 3 member properties and a constructor accepting those 3 properties as parameters, you can achieve that in 4 lines of F# vs. 8 (non-curly brace) lines of C#. This sort of conciseness is found all over the language as you keep digging deeper. I really recommend Scott Wlaschin's (link author) entire site. The best online resource for learning F#, IMO.
- Guillaume86 12y agoJust to nit-pick: C# 6 should bring this particular case on par with F# if I remember well.