foo => "bar" key/value literals in D!

Andrei Alexandrescu via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon May 30 23:21:03 PDT 2016


On 5/27/16 10:17 PM, Taylor Hillegeist wrote:
> On Friday, 27 May 2016 at 18:10:59 UTC, Vladimir Panteleev wrote:
>> On Monday, 23 May 2016 at 19:00:40 UTC, Adam D. Ruppe wrote:
>>> Have I gone completely mad?!?!
>>
>> Yes, though what does it have to do with this thread? :D
>>
>> This is by far the most appealing way to implement named arguments
>> that I've seen so far:
>>
>> https://github.com/CyberShadow/ae/blob/master/utils/meta/args.d
>
> This is very nice... way more clean than I imagined possible.

s/args/make/g and we have a nice function for std.conv. -- Andrei


More information about the Digitalmars-d-announce mailing list