[DIP] In-place struct initialization
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 5 00:04:55 PDT 2016
On Friday, 5 August 2016 at 06:27:04 UTC, ketmar wrote:
> besides, all this thread looks like a thing that is curing
> symptoms for me. by introducing general named arguments
> support, structure ctors with arbitrary fields comes naturally
> then (not without some code, but it will *look* naturally).
>
> i.e. names args will allow to call any function like `foo(b:42,
> a:"hi")`, and then autocreated struct ctors should not be an
> exception.
>
This ^
Also, there are nice library solution for named argument already.
More information about the Digitalmars-d
mailing list