Tuples, CTFE, and Sliding Template Arguments
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sun Jan 14 17:14:03 UTC 2024
On 15/01/2024 6:12 AM, Nickolay Bukreyev wrote:
> On Sunday, 14 January 2024 at 08:23:47 UTC, Richard (Rikki) Andrew
> Cattermole wrote:
>> For instance suffix strings, positional arguments are not handled here
>> and if something wasn't an interpolated string.
>
> Yes, suffix strings. There’s simply nowhere to put them in. We cannot
> even attach them to the last argument as `@ISuffix`… because there can
> be no arguments at all! (Not to mention this would break symmetry—which
> I’m not fond of.) Until there is a satisfactory solution, I cannot
> compare inline attributes with other interpolation approaches.
There is a solution.
Use a positional argument instead, set to -1.
Quite easy really :)
More information about the Digitalmars-d
mailing list