On 04/07/2016 01:00, Lawrence D’Oliveiro wrote:
On Monday, July 4, 2016 at 11:47:26 AM UTC+12, eryk sun wrote:
Python lacks a mechanism to add user-defined operators. (R has this
capability.) Maybe this feature could be added.
That would be neat. But remember, you would have to define the operator
precedence as well. So you could no longer use a recursive-descent parser.
That wouldn't be a problem provided the new operator symbol and its
precedence is known at a compile time, and defined before use.
--
Bartc
--
https://mail.python.org/mailman/listinfo/python-list