Named constructors

Atila Neves atila.neves at gmail.com
Tue Jan 15 13:32:52 UTC 2019


On Tuesday, 15 January 2019 at 12:42:32 UTC, Olivier FAURE wrote:
> On Monday, 14 January 2019 at 16:04:26 UTC, Atila Neves wrote:
>> [...]
>
> I think these design patterns are useful if you really want 
> named arguments in your code right now, but they really 
> shouldn't replace the structure initialization DIP.
>
> [...]

Good error messages are perfectly doable with a library solution. 
Sure, the "Did you mean" one is harder to implement, but still 
doable.


More information about the Digitalmars-d mailing list