On 11/10/2021 17:03, Steven Troxler wrote: > Personally, I think we should both adopt function-as-a-type and shorthand > syntax, and reject both the XOR and hybrid syntax because function-as-a-type > is convenient for expressing the same things (named, default-value, and > variadic args).
+1 This combination of a shorthand syntax for simple callbacks and a longhand interface-style method for more complex signatures is the best option IMO. It provides good flexibility, in the pragmatic sense of "there should be only one way to do it": there is a dead-simple way which is pretty good, and a more flexible way for more complex cases which is pretty easy to switch to if necessary. _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/XFE32UGDI4TAS6BREEHKLOYP3TZF6FFK/ Code of Conduct: http://python.org/psf/codeofconduct/