Contextualizing keywords
Michael Mittner
m.mittner at shebang.at
Mon Aug 3 11:20:25 PDT 2009
Ary Borenszweig wrote:
> 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() {
> }
>
> :-)
For future extensibility it should be
<keyword type="pure"> SomeType foo() { /* ... */ }
;)
More information about the Digitalmars-d
mailing list