Examples Wanted: Usages of "body" as a Symbol Name

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 5 23:35:57 PDT 2016


On Wednesday, October 05, 2016 02:11:14 Meta via Digitalmars-d 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 think that the only case that I've run into where I'd want to use body as
a symbol name would be http/e-mail messages, since they have a header and
a body.

- Jonathan M Davis



More information about the Digitalmars-d mailing list