4 ms·
print "%s may or may not take over the world at some point, but it needs another round of investment in the next 18 months just to survive." % ('any Ponzi schem
by NumberCruncher 9y ago
print "%s may or may not take over the world at some point, but it needs another round of investment in the next 18 months just to survive." % ('any Ponzi scheme')
- jeroenjanssens 9y agoPython 2? Absolutely barbaric.
- devdoomari 9y agopython2 has much better syntax than that... print "{something} may or may not take over the world at some point, but it needs another round of investment in the next 18 months just to survive.".format(something='any Ponzi scheme') python 2, 3 are nice... got loads of libs... just that they don't have enough static typings to help me around :(
- brianwawok 9y agoLook into mypy! Its a good start.
- devdoomari 9y agomypy is going in a nice direction! hope it would get scala or idris-level typechecks :) But... most library definitions are quite lacking... if only some big company would volunteer to fill that huge gap... (hope MS gives some luv! just like they did with Typescript + DefinitelyTyped)
- _jal 9y agoWake me when it finally gets a case statement.
- amyjess 9y agoI use %s with Python 3 when I don't specifically have access to 3.6 (like at work, where I have to use 3.4 because we're a RHEL 7 shop). I detest .format(), and I won't use it.
- sctb 9y agoWe detached this subthread from https://news.ycombinator.com/item?id=14601085 https://news.ycombinator.com/item?id=14601085 and marked it off-topic.