Hacker News new | ask | show | jobs
by loukrazy 1867 days ago
Isn’t the point that Record classes will be able to be upgraded to value types easily once Valhalla is done? Or am I missing something
2 comments

No they won't (or maybe they will be able to be speculatively opt-deopt?) Value types above a relatively small size are less efficient than references.
Yes, just add 'primitive' before record in the declaration.