[swift-evolution] [Returned for revision] SE-0077: Improved operator declarations
bknope at me.com
Tue Jun 28 09:38:09 CDT 2016
I'm just concerned that precedencegroup might be confusing at first look.
But like you said, it's not going to be a widely written feature (but it's will be widely used!).
Also, is taking a keyword at the top level really that bad? Precedence could still be used inside classes and methods etc
On Jun 27, 2016, at 7:01 PM, John McCall via swift-evolution <swift-evolution at swift.org> wrote:
>> On Jun 25, 2016, at 10:57 AM, Anton Zhilin via swift-evolution <swift-evolution at swift.org> wrote:
>> I replaced `precedencegroup` with `precedence` and added `Precedence`
>> suffix to all precedence group names. See:
>> My feelings:
>> 1. `precedencegroup` describes what it declares more precisely
>> 2. `precedence` is shorter (partially compensating for longer names)
>> 3. `precedence` can be correctly interpreted as "precedence level"
>> 4. `precedence` looks nicer overall
> Keep in mind that this is a pretty marginal feature. I'm not sure "precedence" is a reasonable enough thing to take as a keyword for it.
>> 5. `Precedence` suffix is bulky. One must specify it in operator
>> declarations and in all relationships
>> 6. All groups ending with adjectives may unambiguously drop the suffix
>> 7. Number of such groups is small. New groups will tend to be named after
>> corresponding operators, and they will be noun-based
>> 1. Where else can we drop -Precedence?
>> 2. Can we make more names end with adjectives?
>> swift-evolution mailing list
>> swift-evolution at swift.org
> swift-evolution mailing list
> swift-evolution at swift.org
More information about the swift-evolution