[swift-evolution] [Returned for revision] SE-0077: Improved operator declarations

Guillaume Lessard glessard at tffenterprises.com
Thu Jun 23 11:44:52 CDT 2016


> On 23 juin 2016, at 09:32, Anton Zhilin via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Ross O'Brien via swift-evolution <swift-evolution at ...> writes:
> 
>> The naming suggestion: why not simply 'precedes' and 'succeeds'? This 
> avoids the conjoined words problem. Then you're just writing 
> 'Multiplication { succeeds: Exponentiation, precedes: Addition }'.
> 
> I still believe that `above` and `below` are clearer.

How about `before` and `after`, then?

(altitude is not precedence)

This truly is a precedence relationship, and expressing it using height relationships isn’t particularly useful. What we need to express is that when there is possible ambiguity between two operators, which one should be used first? Obviously, it’s the one that comes “before”, or perhaps the one that “precedes” the other.

Cheers,
Guillaume Lessard



More information about the swift-evolution mailing list