Proposal: user defined attributes

Manu turkeyman at gmail.com
Sat Mar 17 02:23:42 PDT 2012


On 17 March 2012 02:53, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:

> On 3/17/12, Kapps <opantm2+spam at gmail.com> wrote:
> > @WebForm("Account");
> > @PostTo("Services/CreateAccount")
> > @SecureOnly(true)
> > struct CreateAccountForm {
>
> That kind of turns D from a structural to a declarative language. :p
>

And that's awesome in many situations! :)

This also maps really well to games/tools/editors/script bindings. C# has
this, and it's an invaluable language feature. It adds so much simplicity
to the tools code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120317/c52603d9/attachment-0001.html>


More information about the Digitalmars-d mailing list