3 ms·
> seemingly minor language feature This is not at all a "minor" language feature. Allowing different functions with the same name is an obvious atrocity that
by enriquto 5y ago
> seemingly minor language feature
This is not at all a "minor" language feature. Allowing different functions with the same name is an obvious atrocity that necessarily leaches to the whole language. For every function call you need to find all instances where its name is defined, not just one. Imagine allowing variables with the same name but different types; the actual variable to be determined according to the context. Wouldn't that make interpreting the language much more difficult? The same thing happens with overloaded functions or methods.