One similarity that I don't think has been mentioned yet:
- decorator syntax says, "run me later, after this function is built"
- late-bound argument syntax says, "run me later, just before each function
call"
Because both mean "run me later" we can leverage the @ symbol to aid understanding; also, because "run me later" can
completely change the workings of a function (mutable defaults, anyone?), it deserves more attention than being buried
in the middle of the expression where it is easy to miss (which is why I originally proposed the ? -- it stood out better).
--
~Ethan~
_______________________________________________
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/VUKFDNJBHSM7GJLKRDJHGQ7WKZZDLB2F/
Code of Conduct: http://python.org/psf/codeofconduct/