[Issue 5775] "body" keyword is unnecessary

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 23 15:59:18 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5775


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #2 from Jonathan M Davis <jmdavisProg at 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: -------


More information about the Digitalmars-d-bugs mailing list