3 ms·
I agree with much of this on principle, however one of the first examples really strikes me as poorly conceived. One such example is the variable 'name'; there
by mjevans 10y ago
I agree with much of this on principle, however one of the first examples really strikes me as poorly conceived.
One such example is the variable 'name'; there are a lot of other languages and contexts in which 'name' can be a reserved keyword. As a member on an object it's probably OK, but in a larger syntax it isn't quite precise enough. A better variable might be nameDisplay.
This presumes that you are referring to the way that a user prefers their name to be displayed in native output; it does not attempt to make any distinction to name components which may or may not be applicable.