Backend nearly entirely converted to D
Walter Bright
newshound2 at digitalmars.com
Wed Nov 7 22:58:13 UTC 2018
Slides and video link:
http://nwcpp.org/october-2018.html
On 11/7/2018 2:08 PM, H. S. Teoh wrote:
> I don't speak for the compiler devs, but IMO, one-letter variables are
> OK if they are local, and cover a relatively small scope. Java-style
> verbosity IMO makes code *harder* to read because the verbosity gets in
> your face, crowding out the more interesting (and important) larger
> picture of code structure.
>
> As Walter said in his recent talk, the length of variable names (or
> identifiers in general, really) should roughly correspond to their
> scope: local variable names ought to be concise, but global variables
> ought to be verbose (both to avoid identifier collision when a larger
> amount of code is concerned, and also to serve as a convenient visual
> indication that yes it's a global).
Yes, exactly.
More information about the Digitalmars-d-announce
mailing list