Yet another terrible compile time argument proposal
Daniel N
no at public.email
Mon Jan 15 17:04:37 UTC 2024
On Monday, 15 January 2024 at 16:49:24 UTC, Steven Schveighoffer
wrote:
>
> Unbeknownst to me, Quirin F. Schroll has already created a
> [pretty robust DIP](https://github.com/dlang/DIPs/pull/232)
> that is ready for proposing, describing basically exactly what
> I was proposing, with all the hairy details worked out.
>
> I apologize for not recognizing this, and hope that this DIP is
> considered and accepted!
>
> This indeed would enable a much simpler mechanism for the SI
> proposals to be dealt with at compile time.
>
> -Steve
I just want to add that C++20 went down a similar route... yet
using auto.
https://en.cppreference.com/w/cpp/language/function_template#Abbreviated_function_template
Not as flexible as Quirins idea yet a little simpler. I don't
mind either way... but could be good to know it exists before you
decide on something.
More information about the Digitalmars-d
mailing list