Better HN
topnewbestaskshowjobs
Log inSign up

OceanSpray

5 karma · joined Oct 28, 2012 (14y ago) · 4 submissions

Submissions

comment 5y ago · link · parent

Are you implying that sum types wouldn't be expressed in a function signature?

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

"It's impossible to reach absolute zero, so it's also impossible to drink chilled beverages."

comment 14y ago · link · parent

The issue is actually impossible to fix without overhauling the entire language. It's impossible to garbage collect unboxed objects without being conservative.