Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
NotCamelCase
· 6y ago · 0 comments
Rust doesn't have function/operator overloading
yet
or it won't have it at all? I am vastly for clarity and simplicity over vague, implicit stuff but doing e.g vector operations can get very unreadable very quickly without it.
Comments
[–]
pjmlp
6y ago
Rust has operator overloading,
https://doc.rust-lang.org/rust-by-example/trait/ops.html
[–]
SaxonRobber
6y ago
Vector operations are one of the few cases where I think operator overloading is sometimes a good idea.