News for hackers. Stuff that matters.
Re:Hindley-Milner Type Inference (2012) by nulptr on Friday July 10, 2020 @04:04PM (#23795782)
because "ssdf" is a string but B("asd") is user-defined sum type.

So in the original example, you can't unify "ssdf" and the int 33, but in the re-written version B("sfd") and A(33) have the same type and can be unified.

There are no comments on this comment yet.