logoalt Hacker News

DeathArrowtoday at 2:41 PM1 replyview on HN

I love it, but I see a downside, though: unions are currently implemented as structs that box value types into a Value property of type object. So there can be performance implications for hot paths.


Replies

IcyWindowstoday at 2:49 PM

The article mentions that one can implement a union type that doesn't do boxing.