Hello, On Mon, 4 Jan 2021 21:47:26 +1100 Chris Angelico <rosuav@gmail.com> wrote:
On Mon, Jan 4, 2021 at 9:41 PM Paul Sokolovsky <pmiscml@gmail.com> wrote:
Hello,
There're tons of projects which introduce alternative braces (i.e. C-like) syntax for Python. Most of them are however not properly documented, and definitely not spec'ed for what they do.
I wonder, does anyone here remember more or less formal proposal for braces syntax? A "minimum viable product" criteria would be support for lossless indent -> braces -> indent syntax roundtripping.
from __future__ import braces File "<stdin>", line 1 SyntaxError: not a chance
Old, sour, buggy implementation from previous century. https://github.com/search?q=python+braces shows a bunch of projects ranging from 2013 from 2020-11 which add alternative braces syntax to Python, and that's only on Github (I'm sure it starts 1990-something). So people, did, do, and will add braces syntax to Python. Which leads us back to the question - did anyone of those who did that over decades ever bothered to post some kind of "spec" for this alternative syntax? For example, Scheme has alternative syntax encoded as officially incorporated "RFC document" (similar to Python's PEP): https://srfi.schemers.org/srfi-119/srfi-119.html (actually, as quick glance there shows, there was an evolution of alternative syntaxes). -- Best regards, Paul mailto:pmiscml@gmail.com