Re:Why Zig When There Is Already CPP, D, and Rust? (2017)
by coldtea on Monday October 15, 2018 @04:04AM
(#18218145)
It's not just some historical curiosity from privative computing days.
Huge successful current languages don't have operator overloading now either. If anything, outside numerical/scientific work, it's even frowned upon.
And even in languages that do have them, it's not like people usually work with typed feet and such units. It is indeed safer, but I'm not sure it's mainstream (F#, Ada, Rebol, etc). Of course one can find such typed unit libs for other languages with Op. Overloading (C++ eg. has boost.units), but it's not like they're mainstream even where Operator Overloading is available.
In any case, it's not the first argument to make against a system language that it doesn't support Op. Overloading as a means for this use case.
Huge successful current languages don't have operator overloading now either. If anything, outside numerical/scientific work, it's even frowned upon.
And even in languages that do have them, it's not like people usually work with typed feet and such units. It is indeed safer, but I'm not sure it's mainstream (F#, Ada, Rebol, etc). Of course one can find such typed unit libs for other languages with Op. Overloading (C++ eg. has boost.units), but it's not like they're mainstream even where Operator Overloading is available.
In any case, it's not the first argument to make against a system language that it doesn't support Op. Overloading as a means for this use case.