Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
3001
· 6y ago · 0 comments
Don't take my word for it but I don't think you can implicitly unify[0] two base type in HM.
https://www.cs.cornell.edu/courses/cs3110/2011sp/Lectures/le...
Comments
[–]
shpongled
6y ago
You cannot unify a string and an integer. 'Base type' is just an abstraction over the enumerable primitive types (bool, unit, char, etc). It's generally understood that these are simple cases to unify, so they aren't even mentioned most of the time.