Contextualizing keywords
Ary Borenszweig
ary at esperanto.org.ar
Mon Aug 3 11:04:00 PDT 2009
Michael Mittner wrote:
> Robert Fraser wrote:
>
>> Thoughts?
>
> Maybe doing more things analog to scope(exit/etc) might be an idea, where we
> have one "major" keyword and a couple of "minor" ones that differentiate the
> meaning further.
>
> -Mike
Yes. Maybe every keyword could be just "keyword(...)". For example:
keyword(static), keyword(final), etc. For example this code now:
pure SomeType foo() {
}
would be, with this change:
keyword(pure) SomeType foo() {
}
Hmm...
Or maybe:
@pure void foo() {
}
:-)
More information about the Digitalmars-d
mailing list