I think Go took the right approach with calling those bugs to be avoided rather than features to be implemented.
Don't be clever. Be understandable to most readers.
I think Go took the right approach with calling those bugs to be avoided rather than features to be implemented.
Don't be clever. Be understandable to most readers.
If you make a function called add which actually subtracts, why is that any different to an operator overload?
Quickly onboarding novices is only helpful for throwaway work or teams with retention problems. Their work inherently needs more scrutiny until they become experts.
I say that as a member of a team whose median tenure (three years ten months) is short enough to concern me a little.
Based on my experience those projects are 99% of all projects in commercial organizations. So, emphatically no.
I accidentally replied to yours. I had intended to reply to preseinger.
The former is in general preferable to the latter, though, because it makes it a little more clear that arbitrary computation is occurring.
The whole attitude (and the Go programming language) is maybe downstream from the fact that perf/promo criteria punish people who maintain the software they write.