"body" keyword is unnecessary
sclytrack
sclytrack at superidiot.com
Thu Mar 24 04:00:03 PDT 2011
== Quote from piotrek (starpit at tlen.pl)'s article
> On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote:
> > D already has a long list of keywords, reserved words can't be used as
> > identifiers, which can be annoying. "body" in particular is a common
> > noun that programmers would gladly use as a variable name in physics
> > simulation, astronomy, mechanics, games, health, etc. I think "body" can
> > be removed from D with no harm, and with the benefit of allowing the
> > name as identifier.
> yes, please
> body is also a html tag
> Cheers
> Piotrek
Copied the following line from the Vala (=mostly reference counted language) web page.
"It is possible to use a reserved keyword as identifier name by prefixing it with
the @ character. This character is not part of the name. For example, you can name
a method foreach by writing @foreach, even though this is a reserved Vala keyword."
My body is hungry and starving.
More information about the Digitalmars-d
mailing list