<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 20, 2016, at 4:56 PM, Антон Жилин <<a href="mailto:antonyzhilin@gmail.com" class="">antonyzhilin@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">My working version is still the one in the proposal, but I'm planning to add the alternative versions we discussed, including your and Brent's variants.<div class=""><br class=""><div class="">IMHO, original version is heavy, but clear (not to confuse with "clean"). Your lighter version looks more clean, but somewhat less consistent and more free in terms of grammar.</div><div class=""><br class=""></div><div class="">Also, I've got another version, which is considerably ligher than current one, while being as structured:</div><div class=""><br class=""></div><div class="">precedence Multiplicative {</div><div class=""> associativity(left)</div><div class=""> above(Additive)</div><div class=""> below(Exponentiative)</div><div class="">}</div></div></div></div></blockquote><div><br class=""></div><div>In this case I think clear and clean are one and the same. The parentheses feel arbitrarily noisy to me. What purpose do they serve?</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><br class=""></div><div class="">- Anton</div></div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-05-21 0:25 GMT+03:00 Matthew Johnson <span dir="ltr" class=""><<a href="mailto:matthew@anandabits.com" target="_blank" class="">matthew@anandabits.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><br class=""><div class=""><span class=""><blockquote type="cite" class=""><div class="">On May 20, 2016, at 4:22 PM, Антон Жилин <<a href="mailto:antonyzhilin@gmail.com" target="_blank" class="">antonyzhilin@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Yes, in this case it should be allowed, because this relationship already existed in imported modules. I will add that, too, thanks!</div></div></blockquote><div class=""><br class=""></div></span><div class="">Cool.</div><div class=""><br class=""></div><div class="">What is the latest syntax you are using? Did you consider any of the lighter weight options? That subthread died without conclusion (unless I missed something somehow).</div><div class=""><div class="h5"><div class=""><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><br class=""></div><div class="">- Anton</div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-05-21 0:01 GMT+03:00 Matthew Johnson <span dir="ltr" class=""><<a href="mailto:matthew@anandabits.com" target="_blank" class="">matthew@anandabits.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><br class=""><div class=""><span class=""><blockquote type="cite" class=""><div class="">On May 20, 2016, at 3:51 PM, John McCall <<a href="mailto:rjmccall@apple.com" target="_blank" class="">rjmccall@apple.com</a>> wrote:</div><br class=""><div class=""><div style="word-wrap:break-word" class=""><div class=""><blockquote type="cite" class=""><div class="">On May 20, 2016, at 1:25 PM, Антон Жилин <<a href="mailto:antonyzhilin@gmail.com" target="_blank" class="">antonyzhilin@gmail.com</a>> wrote:</div><div class=""><div dir="ltr" class="">Inline:<br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-05-20 20:58 GMT+03:00 John McCall <span dir="ltr" class=""><<a href="mailto:rjmccall@apple.com" target="_blank" class="">rjmccall@apple.com</a>></span>:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">The transitivity rule plus the ability to define precedence relationships in both directions on a new precedence group allows a new precedence group to create a precedence relationship between existing unrelated precedence groups. This should be forbidden.</div></div></blockquote><div class=""><br class=""></div><div class="">Agreed, although there is an alternate solution to allow global-scope relationship definition.</div><div class="">Trying to write it formally:</div><div class=""><br class=""></div><div class="">====begin====</div><div class="">Precedence relationships that, by transitivity rule, create relationship between two imported groups, is an error. Example:</div><div class=""><br class=""></div><div class="">// Module X</div><div class="">precedencegroup A { }</div><div class="">precedencegroup C { }</div><div class=""><br class=""></div><div class="">// Module Y</div><div class="">import X</div><div class="">precedencegroup B { precedence(> A) precedence(< C) }</div><div class=""><br class=""></div><div class="">This results in compilation error "B uses transitivity to define relationship between imported groups A and C".</div><div class="">The rationale behind this is that otherwise one can create relationships between standard precedence groups that are confusing for the reader.</div></div></div></div></div></blockquote><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class="">====end====</div></div></div></div></div></blockquote><div class=""><br class=""></div>Seems good to me.</div></div></div></blockquote><div class=""><br class=""></div></span><div class="">Would this be allowed if Module X already defined precedence group C > A (it would not be defining a *new* relationship between A and C in that case)?</div><span class=""><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap:break-word" class=""><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">What's the purpose of equality relationships between precedence groups?</div></div></blockquote><div class=""><br class=""></div><div class="">Agreed, will remove.</div></div></div></div></div></blockquote><div class=""><br class=""></div>Ok.</div><div class=""> <br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Your proposal should call out the special treatment of the Assignment and Ternary groups.</div></div></blockquote><div class=""><br class=""></div><div class="">Do you mean that most operators should define greater precedence than Assignment / Ternary? Or there should be some other special treatment?<br class=""></div></div></div></div></div></blockquote><div class=""><br class=""></div></div>Just that they have implicit members.<div class=""><br class=""></div><div class="">John.</div></div></div></blockquote></span></div><br class=""></div></blockquote></div><br class=""></div>
</div></blockquote></div></div></div><br class=""></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>