28 Aug
2019
28 Aug
'19
12:09 p.m.
śr., 28 sie 2019 o 13:18 Steven D'Aprano
On Tue, Aug 27, 2019 at 05:13:41PM -0000, stpasha@gmail.com wrote:
The difference between `x'...'` and `x('...')`, other than visual noise, is the following:
- The first "x" is in its own namespace of string prefixes. The second "x" exists in the global namespace of all other symbols.
Ouch! That's adding a lot of additional complexity to the language.
There is much simpler solution, just make `abc"whatever"` synatctic sugar for `string_literal_abc(r"whatever", closure)` where closure is object that allow read only access to variables in call site.