Open PossiblyAShrub opened 1 month ago
This kind of thing is also useful for metaprogramming
for example in mycpp we have to special case flag.extern
, derived from --extern
, as flag.extern_
Because extern
is a C++ keyword
We also have the same issue with Python keywords
So if we provide a function quoteName()
or ${x|yshName}
, which does the correct quoting, then it will make metaprogramming slightly cleaner
This is slightly related to the thread with Julian about 4 ways to generate procs dynamically
Although I guess in that case it was mostly foo-$suffix
, which is usually OK
From Zulip: #language-design>Kebab-Case literal syntax
Current ideas are:
y#my-proc
orr#my-proc