Re: Named template arguments

2024-08-08 Thread Anonymouse via Digitalmars-d-learn
On Thursday, 8 August 2024 at 10:51:29 UTC, IchorDev wrote: Named template parameters were mentioned in [the DIP](https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1030.md), they just haven’t been implemented yet. Thanks! Will just wait then.

Re: Named template arguments

2024-08-08 Thread IchorDev via Digitalmars-d-learn
On Thursday, 8 August 2024 at 10:45:54 UTC, Anonymouse wrote: Is there a reason why we can't have named template arguments too? I don't particularly mind it if we'd have to limit the ordering so that variadics have to be placed last. I just want to avoid having to resort to

Named template arguments

2024-08-08 Thread Anonymouse via Digitalmars-d-learn
o!(bar)` onlineapp.d(5): Error: found `)` instead of statement */ ``` Is there a reason why we can't have named template arguments too? I don't particularly mind it if we'd have to limit the ordering so that variadics have to be placed last. I just want to avoid having to resort to `Flag!"bar" bar` parameters.