In a tight scope like this, `u` is the same thing as the classic "dummy variable", like the `i` in a for loop. "For a user u, do this". Dummy variables must never be given long names, because long names say, "this is not a dummy variable", which is a lie in that case.
Re:Long Names are Long
by GregBuchholz on Friday June 17, 2016 @05:04PM
(#11925541)
You may be interested in "Programming Shorthands"
http://research.microsoft.com/apps/pubs/default.aspx?id=6974...
Re:Long Names are Long
by robwilliams on Friday June 17, 2016 @05:08PM
(#11925565)
>Use a better language instead of caring about the names.
That's not always an option.
Also, I don't find the language OP linked syntactically challenged. C# has a similar syntax and it's much more readable than what you've provided:
people.Sort(p => p.FirstName);
If you need to specify the "u" in order to re-use it in one place only, then your language is syntactically challenged. Use a better language instead of caring about the names. A more flexible language would enable a predefined name like "it" or "_" instead, e.g:
or even provide syntax to do common stuff, e.g. the asterix in: