▲ | throwawaymaths 2 days ago | |||||||
except are you sure that's what it's doing? it could have been overloaded. you have to ask yourself that every time. | ||||||||
▲ | Doxin a day ago | parent | next [-] | |||||||
Or you can assume it's implemented sanely. Yes if someone overrides $ and does something wildly wrong with it that'll get confusing. That's the fault of whoever wrote that code though, not of $ itself. You can also overload +, imagine the mayhem if someone did something weird with that. should we ban overloading operators altogether? | ||||||||
| ||||||||
▲ | 1980phipsi a day ago | parent | prev [-] | |||||||
I've looked at a lot of D code, and I can't recall it ever being misused. |