Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: Why Did Python Win?. Parent comment
Quite commonly by design, or, “why union (and sum) types are a thing”.
Something returning type “Foo | nil” is very often going to return Foo on one branch and nil on another.
There are no comments on this comment yet.
Quite commonly by design, or, “why union (and sum) types are a thing”.
Something returning type “Foo | nil” is very often going to return Foo on one branch and nil on another.