News for hackers. Stuff that matters.
Re:F# 4.0 Preview by CmonDev on Thursday November 13, 2014 @06:29PM (#8604855)
Fair enough, thanks for answers.
Re:F# 4.0 Preview by noblethrasher on Thursday November 13, 2014 @07:07PM (#8605018)
You're welcome.

It just occurred to me that you may have been asking about extending Shape in the C# example. In that case, you'd just subclass Shape as normal[1]. Some people argue that sum types shouldn't be extended, but I never really understood that. Basically, C# lets you define unbounded sum types (in the form of subclassing) whereas idiomatic F# more or less demands that you know up front how many variants you're going to need.

[1] Although, sometimes I do define my classes to prevent this by marking the constructor(s) of the abstract base class as private, and then writing the derived class definitions within the body of the base class.

Re:F# 4.0 Preview by CmonDev on Friday November 14, 2014 @05:54AM (#8606580)
I have seen opinions that C# is good for architecture and F# is good for implementation of components. I might opt for such an approach. Really wish I had a default non-null immutability in C# though.