[Issue 5775] body keyword is unnecessary

2012-01-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5775


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||WONTFIX


--- Comment #3 from Walter Bright bugzi...@digitalmars.com 2012-01-20 
19:00:36 PST ---
{ ... } { ... } just looks wrong. Hence the body keyword.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 5775] body keyword is unnecessary

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5775


bearophile_h...@eml.cc changed:

   What|Removed |Added

 CC||bearophile_h...@eml.cc


--- Comment #1 from bearophile_h...@eml.cc 2011-03-23 15:43:22 PDT ---
Considering the strong resistance against adding new kewords to D, in D there
are several unused keywords, like typedef, macro, body, delete, cent,
ucent...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 5775] body keyword is unnecessary

2011-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5775


Jonathan M Davis jmdavisp...@gmx.com changed:

   What|Removed |Added

 CC||jmdavisp...@gmx.com


--- Comment #2 from Jonathan M Davis jmdavisp...@gmx.com 2011-03-23 15:55:57 
PDT ---
cent and ucent _should_ be kept around. They're _supposed_ to be unused
keywords at this point. The idea is that if/when we need to add 128 bit
integers to the language, we already have keywords for them. That way, we'll be
able to add them without breaking code.

macro should likely be kept in case we actually do something with AST macros
(or some other macro-like mechanism) in a future version of the language.

We may or may not care about keeping typedef once the construct that it's
currently used has been removed. We could probably remove it. The same goes for
delete.

body... Well, I tend to agree that one is totally unnecessary. It probably
simplifies the parsing a bit, but unless it's needed to keep the grammar
context-free (which it might be, depending on what the exact grammar is for in,
out, and body blocks - though I doubt it), it should be able to be removed.
However, since it's in the language and its use hasn't changed at all over time
(as far as I know), Waler at least thought that we should have it, and unless
something about the situation or his opinion has changed in the interim, I
doubt that he'll want to get rid of it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---