<div dir="ltr">Lol, I'll search harder next time. :-) </div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 22, 2016 at 11:30 AM, Erica Sadun <span dir="ltr"><<a href="mailto:erica@ericasadun.com" target="_blank">erica@ericasadun.com</a>></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><a href="https://github.com/apple/swift-evolution/blob/master/proposals/0068-universal-self.md" target="_blank">https://github.com/apple/swift-evolution/blob/master/proposals/0068-universal-self.md</a></div><div><br></div><div>It's dangerous to go alone. Take this with you. </div><div><br></div><div>-- E</div><div><br></div><br><div><blockquote type="cite"><div><div class="h5"><div>On May 22, 2016, at 12:24 PM, Adam Nemecek via swift-evolution <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><div>What do you guys think about aliasing the type of the current object with the Self keyword? </div><div><br></div><div>E.g. instead of writing </div><div><br></div><div>class Test {</div><div> static var value = 0</div><div> </div><div> func printValue() {</div><div> print(Test.value)</div><div> }</div><div>}</div><div><br></div><div><br></div><div>One could write </div><div><br></div><div>class Test {</div><div> static var value = 0</div><div> </div><div> func printValue() {</div><div> print(Self.value)</div><div> }</div><div>}</div><div><br></div><div><br></div><div><br></div></div></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></blockquote></div><br></div>