<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 Apr 5, 2017, at 9:41 PM, Brent Royal-Gordon via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">It's worth noting that, if you write `\Person.name.valueType`, this syntax is ambiguous—it could mean "make a key path for the `valueType` property on `name` property of `Person`", or it could mean "make a key path for the `name` property of `Person`, then access the key path's `valueType` property". We can solve this by always interpreting it as the former and requiring parentheses for the latter—that is, `(\Person.name).valueType`—but I thought it was worth calling out explicitly.</span><br class="Apple-interchange-newline"></div></blockquote></div><br class=""><div class="">Good point. </div><div class=""><br class=""></div><div class=""> I'm thinking about the hypothetical code examples from previous emails:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class=""></div></blockquote></div><div class=""><div class=""><font face="Monaco" style="font-size: 12px;" class=""> let isPuppyQualifier = <font color="#af00f4" class="">\Pet.type</font> == .dog && <font color="#af00f4" class="">\Pet.age</font> < 12</font></div><div class=""><font face="Monaco" style="font-size: 12px;" class=""> let familyQualifier = </font><span style="font-family: Monaco; font-size: 12px;" class="">(</span><font face="Monaco" style="font-size: 12px;" class=""><font color="#af00f4" class="">\Family.pets</font></font><span style="font-family: Monaco; font-size: 12px;" class="">)</span><font face="Monaco" style="font-size: 12px;" class="">.contains(where: isPuppyQualifier)</font></div><div class=""><font face="Monaco" style="font-size: 12px;" class=""> let familiesWithPuppies = Family.fetch(editingContext, familyQualifier)</font></div></div><div class=""><div class=""><br class=""></div></div></body></html>