Hacker News new | ask | show | jobs
by Dewie 4541 days ago
And IIRC the compiler translates usages of None to null, so any complaint about inefficiency probably does not apply in this case, either.
1 comments

This is actually quite common in languages which support ADTs—you stick tags in the pointer to discriminate between subtypes of a union.