Info
-
Did you know that C++26 added `@, $, and `` to the basic character set?
Example
auto $dollar_sign = 42;
auto @commerical_at = 42;
auto `grave_accent = 42;
Puzzle
- Can you write code snippets where added characters can be used with added value?
Solutions
// math
auto a = 42;
auto a` = a*2;
// macros
$macro(...) ```
// twitter
auto id = @kris;