top | item 46166873

(no title)

Mond_ | 2 months ago

What exactly do you need that Zig doesn't have? Inheritance?

discuss

order

cgh|2 months ago

Proper interfaces would be nice. I realize that eg tagged unions work for most cases but the syntactic sugar would reduce a bit of friction.

smj-edison|2 months ago

What form of interfaces would you want? Something trait-based? Rust's orphan rule has bitten me many times now, and it causes consolidation around certain libraries. Something like Go's interface, where the signature just needs to match? That would be nicer than the current situation with `anytype`, but I don't know if it's better enough to justify a full interface system. Curious to hear your thoughts.