Allow struct constructors with all parameters optional
IchorDev
zxinsworld at gmail.com
Tue Aug 27 22:53:45 UTC 2024
On Tuesday, 27 August 2024 at 08:48:19 UTC, Ogi wrote:
> D disallows parameterless constructors for structs, and there
> are good reasons for this. But constructors with all parameters
> optional are prohibited too. This restriction doesn’t make much
> sense
I can’t remember exactly what the reasons for that were, but I
thought those reasons applied equally to any constructors that
*could* be called with 0 parameters? Could you also elaborate
about how named parameters affect this situation?
More information about the dip.ideas
mailing list