String Interpolation Compare - DIP1027 and YAIDIP

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Sat Oct 21 08:40:11 UTC 2023


On Saturday, 21 October 2023 at 01:50:33 UTC, Walter Bright wrote:
> # DIP1027
> ...
> # Cons
> 1. Is more susceptible to inadvertent matching with the wrong 
> function, because the tuples generated are tuples of strings, 
> integers, and other ordinary types.

2. Requires parsing of format string (always).

Really, except already present *f functions, if you'd like to 
have your own function accepting interpolated strings, DIP 1027 
version would take a lot more time and brain power to write 
compared to YAIDIP.


More information about the Digitalmars-d mailing list