Keywords: How to trick the compiler?
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Tue Jan 28 07:11:24 PST 2014
On Tuesday, 28 January 2014 at 14:30:36 UTC, bearophile wrote:
> Ruby is a different language from D, they define "code safety"
> in quite different ways.
In D I think "body" actually is redundant since in/out always
should be followed by a function body?
Maybe it has more to do with parsing strategies. If you use a
separate and fully independent lexer then the symbol "body" might
be lost and replaced by a keyword enumeration so by tradition you
reserve all keywords?
More information about the Digitalmars-d-learn
mailing list