Struct Initialization syntax

Dukc ajieskola at gmail.com
Tue Jul 24 10:48:40 UTC 2018


On Monday, 23 July 2018 at 16:26:42 UTC, Seb wrote:
> What's your take on this?

Option 2 won't necessarily cause problems with named funcion 
arguments: The names of the constructor arguments and members are 
different anyway, at least usually, letting the compiler to infer 
the intended call by them.

But there might be some corner cases where this would not apply. 
Do you see any?




More information about the Digitalmars-d mailing list