-
Notifications
You must be signed in to change notification settings - Fork 266
Closed
Labels
Description
Currently, ()$ is used for string interpolation in Syntax 2, while {} is already available in C++20 and without introducing any new symbols, {} can be extended to support expressions for string interpolation in a way similar to f-strings in Python. {} for string interpolations is available in C# and Python (two popular programming languages) besides C++20.
Also ()$ is not an operator, it is an expression block inside a string, ()$ is more like a language construct than a postfix unary operator, and it shouldn't be treated as a postfix unary operator, therefore it could be $() instead of ()$, and it could be just () or in a better way, it could be just {} because { and } have less usage in strings than ( and ).
switch-blade-stuff, marioarbras and spaxio