Contextualizing keywords

Jarrett Billingsley jarrett.billingsley at gmail.com
Mon Aug 3 12:06:34 PDT 2009


On Mon, Aug 3, 2009 at 2:20 PM, Michael Mittner<m.mittner at shebang.at> wrote:
> 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() { /* ... */ }
>
> ;)

You referring to that blogger who said he was "ready for languages
with keywords enclosed in XML tags" after seeing a D presentation?  ;)



More information about the Digitalmars-d mailing list