3 ms·
>>> from __future__ import braces File "<stdin>", line 1 SyntaxError: not a chance >>>
by teddyh 2y ago
>>> from __future__ import braces
File "<stdin>", line 1
SyntaxError: not a chance
>>>
- clasxx 2y ago[flagged]
- water-your-self 2y agoWhat is instagram?
- kibwen 2y agoJoke's on Python, it already supports braces: def foo(): #{ if True: #{ print("The future is now, old man") #} #}
- gedy 2y agoHa cool, you could probably make a font with ligatures to hide the # too
- kazinator 2y agoMore than that, you could write a tool which checks the consistency of your indentation against your #{ and #}. This has advantages over using a generation tool that has to strip away braces to produce valid Python.
- giancarlostoro 2y agoI was going to complain that they need to be on separate lines, and then I realized it would work that way, though PEP-8 and Pycharm might complain.
- deleted 2y ago[deleted]