3 ms·
I'm not the OP, but I think they should be case-insensitive, if only to prevent errors like this. If you think otherwise, in what situation would it make sense
by kartickv 10y ago
I'm not the OP, but I think they should be case-insensitive, if only to prevent errors like this.
If you think otherwise, in what situation would it make sense to have two functions with names differing only in case? No upside, only a downside.
- jacquesm 10y agoCase sensitive is fine if you throw an error when someone tries to define the same name with different case.
- kartickv 10y agoThat gets us to 99% of what I had in mind, by preventing bugs like this one, but the remaining 1% is: why, then, generate an error when someone invokes a function while specifying a different case? If there's only one function, does the case matter?