News for hackers. Stuff that matters.
Re:What Monoids teach us about software by theoh on Wednesday September 13, 2017 @04:41PM (#15242407)
Even Haskell doesn't have a way to declare a value precisely of type Bottom.

As far as the connection with monoids goes, Bottom is a subtype of all types in the same way that the empty element of a monoid is a "zero" of the elements of the monoid. I don't know if that helps, but the similarity is that the types form a lattice, and so do the elements of the monoid. AIUI lattices (in the mathematical sense) have top and bottom elements, and in between they look like a DAG...

There are no comments on this comment yet.