On Tue, 5 Jan 2021 10:07:45 +0100 Ronald Oussoren firstname.lastname@example.org wrote:
On 4 Jan 2021, at 12:29, Paul Sokolovsky email@example.com wrote:
On Mon, 4 Jan 2021 21:47:26 +1100 Chris Angelico <firstname.lastname@example.org mailto:email@example.com> wrote:
On Mon, Jan 4, 2021 at 9:41 PM Paul Sokolovsky firstname.lastname@example.org wrote:
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.
This is more a signal that you are far from the first person asking about braces in Python, and what the general opinion from the language designers is about this.
IMHO it is highly unlikely that any proposal about adding braces to Python would be accepted.
And you seem to have 2nd level miss about this miss. I'm not the 1st asking about braces in Python, hundreds of people embraced braces (sorry for the pun) in Python for decades (references are in other messages of this thread). Apparently, they forgot to ask for "acceptance", and accepted it themselves.
The problem? There's high duplication of effort in that area, and the same implementation bugs are repeated again and again. So the question is whether someone who did it, tried to spec out what they did, what is the test process, etc.