[Greg Ewing] > I suggest '^', since it does a nice job of suggesting > "inject stuff into this string". We can have both a > prefix form for compile-time interpolation: > > a = ^ "My name is $name" > > and an infix form for run-time interpolation: > > a = "My name is $name" ^ dict [Barry] > I think I suggested using ~ for this at IPC10: > > a = ~'my name is $name' > > for the compile-time interpolation. I don't think it matters much > which operator is chosen (let Guido decide). -1 on all line-noise string modifiers. (I just looked at Barry's example and part of my reptilian hindbrain thought it was a regex match. Don't do that to Perl and awk refugees, please!) All existing string modifiers are letters; how about "i" for "interpolation": a = i"my name is $name" Assuming of course that we really do need yet another flavour of strings... Greg -- Greg Ward - programmer-at-large gward@python.net http://starship.python.net/~gward/ Time flies like an arrow; fruit flies like a banana.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4