Hacker News new | ask | show | jobs
by throwaway283719 4142 days ago
That would be a groupoid - http://en.wikipedia.org/wiki/Groupoid
1 comments

No, groupoids breaks the group operation and thus behaves like neither of the groups. Do type systems allow operations between union types? If not then it is just a simple interface in OO. If they do then you are no longer working with pure functions.