[Python-ideas] Infix functions

Andrew Barnert abarnert at yahoo.com
Sun Feb 23 06:09:45 CET 2014


On Feb 22, 2014, at 17:23, Steven D'Aprano <steve at pearwood.info> wrote:

>> We could even define that the characters in the combined operator define
>> precendece so the
>> above could be written as
> 
> Who is "we"? The programmer of the module, or the Python core devs? In 
> other words, are the precedences set once, in the language, or in each 
> module that uses them?

His point was that if we make precedence programmatic and rule-based, there is no "we", just the fixed and documented set of rules that automatically give you the precedence for any symbol-string operator. Which solves the problem you're asking about.


More information about the Python-ideas mailing list