D idioms list
uri via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Thu Jan 8 02:53:51 PST 2015
On Thursday, 8 January 2015 at 10:35:07 UTC, ponce wrote:
> On Thursday, 8 January 2015 at 10:30:38 UTC, uri wrote:
>>
>> This is great, thanks.
>>
>> Something I personally would find useful is a comparison
>> between the C++ way and idiomatic D with Phobos. I finding
>> coming from C/C++ to D very easy but I'm always wondering if
>> I'm doing things the "D" way.
>>
>> Cheers,
>> uri
>
> I'm not familiar with the terse, range-heavy, UFCS style that
> has emerged from Phobos so I'm not sure if I can write that.
>
> What could help is a list of tasks for which you asked yourself
> what the "D" way was. Is there one?
No I admit I don't have any real list. It's always an "in the
moment" sort of thing and I then just choose a D-ish/C++ style
and promptly forget the exact details.
I'll start to compile a list each time this comes up. And if I
find any good D idioms in the process I'll include them in the
list as well.
Thanks,
uri
More information about the Digitalmars-d-announce
mailing list