News for hackers. Stuff that matters.
Re:F# 4.0 Preview by zer0nes on Thursday November 13, 2014 @05:07AM (#8600750)
This is a rather poor example. If you distribute the C# code above as a library, people can extend and introduce another shape, while they cannot do it easily with you F# code.
Re:F# 4.0 Preview by noblethrasher on Thursday November 13, 2014 @05:26AM (#8600798)
I did mention the Expression Problem[1] in my comment, and explicitly called out subclassing as a particular advantage of C# (the OP asked for criticism of F#).

Also, even though F# can also subclass, that facility is a bit weak since it can't define protected members.

[1]http://c2.com/cgi/wiki?ExpressionProblem - funny thing is that the linked page coincidentally uses the exact same example code.