<div dir="ltr">While I'm growing to like the '->' operator, at least better than the colon that just looks wrong to me; I would defend Chris' characterization of it as "new."  That is, the symbols exist as function annotations already, but the current use is not as an *operator*, so that's technically true.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 20, 2014 at 4:10 PM, Steven D'Aprano <span dir="ltr"><<a href="mailto:steve@pearwood.info" target="_blank">steve@pearwood.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Wed, Feb 19, 2014 at 10:55:58PM -0500, Yury Selivanov wrote:<br>
><br>
> On 2/19/2014, 8:18 PM, Chris Angelico wrote:<br>
> >Advantages of the arrow include -><br>
> I would refrain from introducing a new operator here,<br>
> especially '->'.<br>
<br>
</div>It's not new. It's used in annotations:<br>
<br>
py> def func(a, b) -> "Return result":<br>
...     return "something"<br>
...<br>
py> func.__annotations__<br>
{'return': 'Return result'}<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Steven<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Keeping medicines from the bloodstreams of the sick; food <br>from the bellies of the hungry; books from the hands of the <br>uneducated; technology from the underdeveloped; and putting <br>
advocates of freedom in prisons.  Intellectual property is<br>to the 21st century what the slave trade was to the 16th.<br>
</div>