What we're talking about here is subject-oriented programming: having the attributes get enclosed into objects, rather then objects enclosing attributes. And this is extremely useful, IMO.
On Sat, Mar 17, 2012 at 1:23 PM, Manu <turkey...@gmail.com> wrote: > On 17 March 2012 02:53, Andrej Mitrovic <andrej.mitrov...@gmail.com> wrote: >> >> On 3/17/12, Kapps <opantm2+s...@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. -- Bye, Gor Gyolchanyan.