Tuples, CTFE, and Sliding Template Arguments

Timon Gehr timon.gehr at gmx.ch
Sat Jan 13 02:56:35 UTC 2024


On 1/13/24 03:16, Walter Bright wrote:
> 
> The other reasons:
> 
> 1. preventing calls to functions passing an ordinary string as opposed 
> to an istring tuple
> 2. preventing nested istrings
> 
> have already been addressed. The compile time thing was the only one left.

There is more, e.g.:

- You cannot interpolate an expression sequence, it will cause the 
format string to get out of synch with the arguments.

- DIP1027's format strings allow manual overrides that may then be 
incompatible with the library functions.

- DIP1027's format strings require the user to manually escape e.g. '%s' 
so that the library does not mistake it for a format specifier, even 
though the user does not otherwise interact with format specifiers at all.


More information about the Digitalmars-d mailing list