Examples Wanted: Usages of "body" as a Symbol Name
Basile B. via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 5 10:51:07 PDT 2016
On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote:
> I'm currently writing up a DIP to propose removing `body` as a
> keyword to allow it to be used for variable names, functions,
> etc. I'm looking for examples and contexts where `body` would
> normally be used as a variable, function name, alias, etc. This
> is what I have come up with off the top of my head:
>
> - In web programming where "body" is a required tag in any
> valid HTML document. Ex:
> - It is a name commonly used for XML tags and/or attributes
> - Physics simulations as well in astronomical contexts
> ("planetary bodyies", etc.)
> - Video games, such as referring to the player character's body
I'll be against this. Seriously is it the biggest problem you
have with D ?
Also, what I guess is that your DIP will not propose "body" to be
removed from the keyword list. You'll propose that "body" will be
a keyword only in certain contexts...
and we have already talked about that. You will say that for
example "win32" is already used as a special keyword in a
versionExpression. And I'll tell you that "win32" is an
identifier used as keyword, contextually, while for "body" it's
the opposite: It's a keyword that you propose to use as
identifier.
More information about the Digitalmars-d
mailing list