<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On Jul 7, 2016, at 9:23 AM, Dmitri Gribenko via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><div class=""><div dir="ltr" class="">&gt; Proposal link:<br class="">&gt;<br class="">&gt; <a href="https://github.com/apple/swift-evolution/blob/master/proposals/0077-operator-precedence.md" class="">https://github.com/apple/swift-evolution/blob/master/proposals/0077-operator-precedence.md</a><br class=""><br class="">Dave, Max and I discussed SE-0077 and reviewed the names of precedence groups.<br class="">Here's our recommendation.<br class=""><br class="">In general, we think some names don't read well and have some ambiguities, for<br class="">example, "LogicalAndPrecedence" (looks like a conjunction),<br class="">"AdditivePrecedence" ("additive" is an adjective that modifies "precedence"),<br class="">"RangePrecedence" ("range" is not an adjective, stands out).<br class=""><br class="">We think that two directions would be fruitful:<br class=""><br class="">1.&nbsp; If the names of precedence groups will be in the same namespace as types,<br class="">&nbsp; &nbsp; then we recommend pushing the names of precedence groups into a "namespace",<br class="">&nbsp; &nbsp; for example "Precedence.Assignment".<br class=""></div></div></blockquote><div><br class=""></div>We don't have any language features that would allow this.</div><div><br class=""></div><div>John.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><br class="">2.&nbsp; If (1) is not workable, we suggest incrementally improving existing names<br class="">&nbsp; &nbsp; to make them more readable and less ambiguous.&nbsp; We think that making the<br class="">&nbsp; &nbsp; names less technical by naming the groups after a representative operation<br class="">&nbsp; &nbsp; will be easier for users to understand (instead of "AdditivePrecence" we<br class="">&nbsp; &nbsp; are proposing "AdditionPrecedence").&nbsp; We also think that using an adjective<br class="">&nbsp; &nbsp; before "Precedence" does not read well in many cases<br class="">&nbsp; &nbsp; ("NilCoalescingPrecedence": precedence that coalesces nils).<br class=""><br class=""><br class=""><font face="monospace, monospace" class="">Current name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| Namespacing &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | Incremental improvement<br class="">------------------------|-----------------------------|-----------------------------<br class="">AssignmentPrecedence &nbsp; &nbsp;| Precedence.Assignment &nbsp; &nbsp; &nbsp; | no change<br class="">TernaryPrecedence &nbsp; &nbsp; &nbsp; | Precedence.Ternary &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| no change<br class="">DefaultPrecedence &nbsp; &nbsp; &nbsp; | Precedence.Default &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| no change<br class="">LogicalOrPrecedence &nbsp; &nbsp; | Precedence.LogicalOr &nbsp; &nbsp; &nbsp; &nbsp;| DisjunctionPrecedence<br class="">LogicalAndPrecedence &nbsp; &nbsp;| Precedence.LogicalAnd &nbsp; &nbsp; &nbsp; | ConjunctionPrecedence<br class="">ComparativePrecedence &nbsp; | Precedence.Comparison &nbsp; &nbsp; &nbsp; | ComparisonPrecedence<br class="">NilCoalescingPrecedence | Precedence.NilCoalescing &nbsp; &nbsp;| no change<br class="">CastPrecedence &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| Precedence.Casting &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| no change<br class="">RangePrecedence &nbsp; &nbsp; &nbsp; &nbsp; | Precedence.RangeForming &nbsp; &nbsp; | RangeFormationPrecedence<br class="">AdditivePrecedence &nbsp; &nbsp; &nbsp;| Precedence.Addition &nbsp; &nbsp; &nbsp; &nbsp; | AdditionPrecedence<br class="">MultiplicativePrecedence| Precedence.Multiplication &nbsp; | MultiplicationPrecedence<br class="">BitwiseShiftPrecedence &nbsp;| Precedence.BitwiseShift &nbsp; &nbsp; | BitwiseShiftPrecedence</font><br class=""><br class="">Dmitri<br class=""><br class="">-- <br class="">main(i,j){for(i=2;;i++){for(j=2;j&lt;i;j++){if(!(i%j)){j=0;break;}}if<br class="">(j){printf("%d\n",i);}}} /*Dmitri Gribenko &lt;<a href="mailto:gribozavr@gmail.com" class="">gribozavr@gmail.com</a>&gt;*/</div>
_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></body></html>