Does D have too many features?

Manu turkeyman at gmail.com
Mon Apr 30 03:29:22 PDT 2012


On 30 April 2012 10:39, Jacob Carlborg <doob at me.com> wrote:

> On 2012-04-30 02:40, Robert Clipsham wrote:
>
>> On 28/04/2012 20:22, Dmitry Olshansky wrote:
>>
>>> 3. with statement (?). I kind of like it but bleh it's too boggy and it
>>> doesn't seem to pull its weight. (pointers? class references? a lot of
>>> stuff to go wrong) Fluent interfaces solve a good portion of its
>>> benefits to be specific.
>>>
>>
>> My primary use case for the with() statement is with final switch:
>>
>> final switch(something) with(**MyEnumWithAPrettyLongName)
>> {
>> case A: // Save repeating myself everywhere
>> break;
>>
>> . . .
>>
>> }
>>
>>
> That's the only thing I used the with-statement for.


That's the only thing I was aware it did ;) .. are there other uses?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120430/b9332324/attachment-0001.html>


More information about the Digitalmars-d mailing list