http://d.puremagic.com/issues/show_bug.cgi?id=7176



--- Comment #9 from Jacob Carlborg <d...@me.com> 2012-07-18 23:20:18 PDT ---
(In reply to comment #8)

> On the other hand, a lot of the small functions I write are boilerplate such 
> as
> property getters and forwarding functions in decorators, so maybe instead of a
> special lambda syntax, what I really want is a few metaprograms to write those
> functions for me.

I wouldn't mind some kind of property shortcut, like this:

class Foo
{
    @property int bar;
}

Is lowered to this:

class Foo
{
    private int bar_;

    @property int bar () { return bar_; }
    @property int bar (int value) { return bar_ = value; }
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to