Hello,

On Mon, 4 Jan 2021 21:47:26 +1100
Chris Angelico <ros...@gmail.com> wrote:

> On Mon, Jan 4, 2021 at 9:41 PM Paul Sokolovsky <pmis...@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:pmis...@gmail.com
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/JHU54SDXWVAEWYRENN2PMD3OJ4DZKVNZ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to