Proposal: user defined attributes

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Sat Mar 17 05:41:09 PDT 2012


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 <turkeyman at gmail.com> wrote:
> 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.



-- 
Bye,
Gor Gyolchanyan.


More information about the Digitalmars-d mailing list