HNHacker News
TopNewBestAskShowJobs

OceanSpray

5 karma · joined October 28, 2012

submissionscomments
OceanSpray··on A rough proposal for sum types in Go (2018)
Are you implying that sum types wouldn't be expressed in a function signature?
OceanSpray··on Go generics draft design: building a hashtable
Without generics, sum types would have to be a built-in like maps and arrays.

With generics, discriminated unions can take on all sorts of user-defined shapes.

OceanSpray··on I Want Off Mr. Golang's Wild Ride
"It's impossible to reach absolute zero, so it's also impossible to drink chilled beverages."
OceanSpray··on Rob Pike: Go at Google
The issue is actually impossible to fix without overhauling the entire language. It's impossible to garbage collect unboxed objects without being conservative.