proposal: allow 'with(Foo):' in addition to 'with(Foo){..}'

Era Scarecrow via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 10 12:07:27 PDT 2014


On Sunday, 10 August 2014 at 18:56:40 UTC, Timon Gehr wrote:
> On 08/10/2014 08:34 PM, Era Scarecrow wrote:
>>  Although I'm not sure how much it adds for complexity to the 
>> compiler (if any).
>
> It is a trivial change in the parser.

  Then I'd say give it a try on a branch and see how it performs 
and some examples to show it's benefits.

  How does the quote go?

  There are some features that are complex and/or hard to use, and 
most of the time you won't need them. But when you really need 
them, you're glad you have them.


More information about the Digitalmars-d mailing list