Visit Official Exploding Ads Website

Wednesday, August 26, 2015

chrismorgan comments on "Python Extension Proposal 498: Literal String Formatting"

By chrismorgan

It would also render the previous ways obsolete. New-style formatting never took over completely from old-style because it wasn’t sufficiently compelling—`”%s %s” % (a, b)` versus `” ”.format(a, b)` doesn’t have a clear winner. But `f”a b”`? Clearly superior. With the exception of backwards compatibility matters (which will be a nuisance for far too long), there would really be no reason to keep using the old ways in most places. i18n/l10n would really be the only mainstream reason for using anything other than f-strings.



link


See more about this article by clicking the link here: https://news.ycombinator.com/item?id=10121706



chrismorgan comments on "Python Extension Proposal 498: Literal String Formatting"

No comments:

Post a Comment