On Mon, Aug 24, 2015 at 1:44 PM, Nathaniel Smith
From the early part of this discussion [1], I had the impression that the goal was that eventually string interpolation would be on by default for all strings, with PEP 498 intended as an intermediate step towards that goal. Is that still true, or is the plan now that interpolated strings will always require an explicit marker (like 'f')?
That was not received well, so I think it's dead.
I ask because if they *do* require an explicit marker, then obviously the best thing is for the syntax to match that of .format. But, if this will be enabled for all strings in Python 3.something, then it seems like we should be careful now to make sure that the syntax is clearly distinct from that used for .format ("${...}" or "\{...}" or ...), because anything else creates nasty compatibility problems for people trying to write format template strings that work on both old and new Pythons.
Good point.
(This is also assuming that f-string interpolation and the eventual plain-old-string interpolation will use the same syntax, but that seems like a highly desirable property to me..)
-n
[1] http://thread.gmane.org/gmane.comp.python.ideas/34980
-- Nathaniel J. Smith -- http://vorpus.org
-- --Guido van Rossum (python.org/~guido)