4 ms·
Joke's on Python, it already supports braces: def foo(): #{ if True: #{ print("The future is now, old man") #} #}
by kibwen 2y ago
Joke'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.