Hacker News new | ask | show | jobs
by 0xjnml 1366 days ago
> I think if Golang would have been invented a couple of years later it def would have had sum types.

How to combine sum types and a precise garbage collector?

1 comments

They're not mutually exclusive. Scala and Haskell had them for a long time now, and Java got them relatively recently.
How can a precise garbage collector work when it does not know if a value is or is not a pointer?