On Apr 28, 2020, at 09:18, Chris Angelico <ros...@gmail.com> wrote:
> 
> I suggest forking CPython and implementing the feature.

I’d suggest trying MacroPy first. There’s no way to get the desired syntax with 
macros, but at least at first glance it seems like you should be able to get 
the desired semantics with something that’s only kind of ugly and clumsy, 
rather than totally hideous. And if so, that’s usually good enough for playing 
around with fun ideas to see where they can lead, and a lot less work.

Plus, playing with MacroPy is actually fun in itself; playing with the CPython 
parser is kind of the opposite of fun. :)


_______________________________________________
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/SPTNT7DXUHVP32ZUZAC6HIYYWNEYDY4K/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to