<div dir="ltr">Instead of #contextDictionary, what about #source. If it&#39;s a dictionary, I think that would read better:<br><br>#source[&#39;file&#39;]<div>#source[&#39;line&#39;]</div><div>...</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 26, 2016 at 4:48 PM, Erica Sadun via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>What do you think of:</div><div><br></div><div>#file, #lineNumber, #column, #symbol (e.g. Swift.Dictionary.init), #module, #contextDictionary</div><div><br></div><div>and calling it a day?</div><div><br></div><div>* using contextDictionary allows expandability and can subsume all existing context elements, indexed presumably by the same names</div><div>* renaming function to symbol takes care of self.dynamicType as well</div><div>* file and lineNumbers are gimmes</div><div>* column is apparently well liked by some (not going to kick someone&#39;s dog on this)</div><div>* adding module fills a big hole.</div><div><br></div><div>No tuples for Doug, covers some of Chris&#39;s points.</div><div><br></div><div>-- E</div><div><br></div><div><blockquote type="cite"><div>On Jan 24, 2016, at 4:12 PM, Remy Demarest &lt;<a href="mailto:remy.demarest@gmail.com" target="_blank">remy.demarest@gmail.com</a>&gt; wrote:</div><br><div><div style="word-wrap:break-word">+1 I love the idea of having not-only consistent naming convention for compiler-magic code starting with #.<div><br></div><div>And I also love the idea that source location would be one object that you can print to get the full story while still retaining the possibility to use each individual components as needed, which is probably the rarer case. I never find myself wanting only some of properties and usually don&#39;t include them simply because it takes longer to write the format properly, if I can get them all in one go it&#39;s certainly a win.<div><div><br><div>
<div>Remy Demarest</div><div><a href="mailto:remy.demarest@gmail.com" target="_blank">remy.demarest@gmail.com</a></div><div><br></div><br>
</div>
<br><div><blockquote type="cite"><div>Le 23 janv. 2016 à 18:46, Erica Sadun via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; a écrit :</div><br><div><div style="word-wrap:break-word"><div>Pull request: <a href="https://github.com/apple/swift-evolution/pull/116" target="_blank">https://github.com/apple/swift-evolution/pull/116</a></div><div><br></div><div>-- E</div><div><br></div><div><br><div><blockquote type="cite"><div>On Jan 22, 2016, at 5:40 PM, Chris Lattner &lt;<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>&gt; wrote:</div><br><div><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Jan 22, 2016, at 1:43 PM, Jack Lawrence &lt;<a href="mailto:jackl@apple.com" target="_blank">jackl@apple.com</a>&gt; wrote:</div><br><div><div style="word-wrap:break-word">Indeed. Here’s the grammar from TSPL:<div><br></div><div><div style="border:0px;font-size:14px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:Helvetica,Arial,sans-serif"><span style="border:0px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(128,128,128);font-style:italic">line-control-statement </span><span style="border:0px;margin:0px;outline:0px;padding:0px 0px 0px 4px;vertical-align:baseline;color:rgb(128,128,128)">→ </span><code style="border:0px;font-size:0.86em;margin:0px;outline:0px;padding:0px 4px;vertical-align:baseline;font-family:Menlo,monospace;font-weight:600;word-wrap:break-word">#line­</code></div><div style="border:0px;font-size:14px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:Helvetica,Arial,sans-serif"><a name="-1198200448_//apple_ref/doc/uid/TP40014097-CH38-NoLink_926" style="border:0px;outline:0px;padding:85px 0px 0px;vertical-align:baseline;display:block;width:0px;min-height:0px;color:rgb(0,136,204)"></a><span style="border:0px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(128,128,128);font-style:italic">line-control-statement </span><span style="border:0px;margin:0px;outline:0px;padding:0px 0px 0px 4px;vertical-align:baseline;color:rgb(128,128,128)">→ </span><code style="border:0px;font-size:0.86em;margin:0px;outline:0px;padding:0px 4px;vertical-align:baseline;font-family:Menlo,monospace;font-weight:600;word-wrap:break-word">#line­</code><span style="border:0px;margin:0px;outline:0px;padding:0px 4px;vertical-align:baseline;font-style:italic;word-break:keep-all"><a href="https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Statements.html#//apple_ref/swift/grammar/line-number" style="border:0px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(0,136,204);text-decoration:none" target="_blank">line-number</a>­</span><span style="border:0px;margin:0px;outline:0px;padding:0px 4px;vertical-align:baseline;font-style:italic;word-break:keep-all"><a href="https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Statements.html#//apple_ref/swift/grammar/file-name" style="border:0px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(0,136,204);text-decoration:none" target="_blank">file-name</a>­</span></div><div style="border:0px;font-size:14px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:Helvetica,Arial,sans-serif"><a name="-1198200448_//apple_ref/doc/uid/TP40014097-CH38-NoLink_927" style="border:0px;outline:0px;padding:85px 0px 0px;vertical-align:baseline;display:block;width:0px;min-height:0px;color:rgb(0,136,204)"></a><span style="border:0px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(128,128,128);font-style:italic">line-number </span><span style="border:0px;margin:0px;outline:0px;padding:0px 0px 0px 4px;vertical-align:baseline;color:rgb(128,128,128)">→ </span><span style="border:0px;margin:0px;outline:0px;padding:0px;vertical-align:baseline">A decimal integer greater than zero</span></div><div style="border:0px;font-size:14px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:Helvetica,Arial,sans-serif"><a name="-1198200448_//apple_ref/doc/uid/TP40014097-CH38-NoLink_928" style="border:0px;outline:0px;padding:85px 0px 0px;vertical-align:baseline;display:block;width:0px;min-height:0px;color:rgb(0,136,204)"></a><span style="border:0px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(128,128,128);font-style:italic">file-name </span><span style="border:0px;margin:0px;outline:0px;padding:0px 0px 0px 4px;vertical-align:baseline;color:rgb(128,128,128)">→ </span><span style="border:0px;margin:0px;outline:0px;padding:0px 4px;vertical-align:baseline;font-style:italic;word-break:keep-all"><a href="https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/LexicalStructure.html#//apple_ref/swift/grammar/static-string-literal" style="border:0px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(0,136,204);text-decoration:none" target="_blank">static-string-literal</a>­</span></div></div></div></div></blockquote><br></div><div>Huh ok, I forgot we supported that.  We could handle that by requiring that form of #line to be at the start of a line, if necessary.</div><div><br></div><div>-Chris</div><br></div></div></blockquote></div><br></div></div>_______________________________________________<br>swift-evolution mailing list<br><a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></div></blockquote></div><br></div></div></div></div></div></blockquote></div><br></div><br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Trent Nadeau</div>
</div>