3 ms·
Not really. With valhalla they can be user-implemented efficiently, although without syntactic sugar like +.
by kaba0 3y ago
Not really. With valhalla they can be user-implemented efficiently, although without syntactic sugar like +.
- jjtheblunt 3y agoDoes that mean addition would look like Uint32 a,b,c; c = a.plus(b); in what you describe, once project valhalla is complete?
- kaba0 3y agoWell, that will be available as a basically zero-cost abstraction. But I haven’t seen more specific mention of it in the mailing lists/design proposals - they definitely didn’t want to add a new primitive type, but perhaps if they manage to heal this rift between objects and primitives and it will only be add syntax-level complexity, they might go for it.