<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div style="font-family:Arial;">On Thu, Mar 16, 2017, at 02:23 PM, Matthew Johnson via swift-evolution wrote:<br></div>
<blockquote type="cite"><div style="font-family:Arial;">I don’t have an example but I don’t see a problem either. There are two options for specifying the return type manually. We can use the signature you used above and use `as` to specify the expected type:<br></div>
<div><div><br></div>
<div>let i = decode(.myKey) as Int<br></div>
</div>
</blockquote><div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">The awkwardness of this syntax is exactly what I'm referring to. Would a beginner know to use "as Int" or ": Int"? Why would they? The "prettiness" of the simple case doesn't make up for how difficult it is to understand and fix its failure cases.<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Any official Swift or Foundation API shouldn't, or shouldn't need to, make use of "tricky" syntax.<br></div>
<div style="font-family:Arial;"><br></div>
<blockquote type="cite"><div><div>If we don’t support this in Foundation we will continue to see 3rd party libraries that do this.<br></div>
</div>
</blockquote><div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">The proposal's been out for less than 24 hours, is it really productive to already be taking our ball and go home over such a minor thing?<br></div>
<div style="font-family:Arial;"><div style="font-family:Arial;"><div style="font-family:Arial;"><br></div>
</div>
<div style="font-family:Arial;"><div style="font-family:Arial;"><span class="font" style="font-family:arial, sans-serif, sans-serif">Zach Waldowski</span><br></div>
</div>
<div id="sig40804545"><div class="signature"><a href="mailto:zach@waldowski.me"><span class="font" style="font-family:arial, sans-serif, sans-serif">zach@waldowski.me</span></a><br></div>
</div>
<div><div style="font-family:Arial;"><br></div>
</div>
<div><div style="font-family:Arial;"><br></div>
</div>
<div><div style="font-family:Arial;"><br></div>
</div>
</div>
<div style="font-family:Arial;"><br></div>
</body>
</html>