On Tue, Jul 21, 2020 at 8:10 AM Thiago Carvalho D' Ávila <thiagocav...@gmail.com> wrote: > In order to make this possible the following changes would be needed: > 1. adding `fun` keyword to method definition (maintaining `def` for backwards > compatibility); > 2. adding `fun` built-in type in addition to Callable;
If it's a built-in type AND a keyword, won't that create hard-to-understand error messages? I would strongly recommend creating a transpiler that converts your proposed syntax into currently-legal Python, and seeing how advantageous it really is. ChrisA _______________________________________________ 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/VJJ5N7FFQUUV7JGQ7NW2DYOQGIKKDQUQ/ Code of Conduct: http://python.org/psf/codeofconduct/