News for hackers. Stuff that matters.
Re:F# 4.0 Preview by couchand on Thursday November 13, 2014 @09:16AM (#8601563)
Well, yes, you can add a rectangle quite easily:

    type Shape =
        | Circle of float
        | Square of float
        | Rectangle of float * float
The thought about adding new shapes (mentioned several times in this thread) is just misplaced. If you're releasing library code people should not be extending your built-in types, that's bad form -- consumers of a library should interact with it through interfaces only.

There are no comments on this comment yet.