4 ms·
Zig doesn't (and never will) have operator overloading, so using any user-defined numeric types is awkward. It also already has vector types.
by gliptic 2y ago
Zig doesn't (and never will) have operator overloading, so using any user-defined numeric types is awkward.
It also already has vector types.
- the__alchemist 2y agoThis is IMO the canonical use case of operator overloads. Are you proposing adding complex numbers to the standard lib to circumvent that restriction, vice addressing it?