Re:Python 3.6.0 released
by dragonwriter on Friday December 23, 2016 @10:38PM
(#13248435)
> Iām curious actually why an f-string syntax is considered OK when a print-statement is not.
One reason might be that f-strings work in expressions, while statements do not. Even with the BDFLs apparent distaste for functional programming constructs, syntax that works within expressions has lots of practical advantages over statements.
One reason might be that f-strings work in expressions, while statements do not. Even with the BDFLs apparent distaste for functional programming constructs, syntax that works within expressions has lots of practical advantages over statements.