5 Jun
2019
5 Jun
'19
2:26 a.m.
On Tue, Jun 4, 2019 at 3:24 PM Greg Ewing
Yanghao Hua wrote:
is Python visioned in a way to allow users to define there own operators?
No, it's not. Whenever the topic has come up, Guido has always said that he is against having user-defined syntax in Python.
Did Guido say "user defined syntax" or "user defined operator"? I love python's syntax and I don't see the need to change it. But for me defining new operator is different and we just had a few more recently (@, @=, :=). The way scala allows user to define new operator is really elegant, and this is actually the driving force for designing new DSL in scala.