Y
Hacker News
new
|
ask
|
show
|
jobs
by
gliptic
705 days 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.
1 comments
the__alchemist
704 days ago
This 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?
link