Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Strangely my favourite feature after 18 years of D programming (!) is that could place keywords largely in the order you like. It is strangely liberating to be able to put:

    pure nothrow @nogc: 
or

    pure:
    nothrow:
    @nogc: 
or

    pure nothrow @nogc
    {
        block
    } 
Sometimes this helps readability.


Am I missing something? Those three keywords are literally in the same order in all the examples.


Sorry, those keywords work in block like those, or relatively to a single function, in any order.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: