<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div><div><div style="font-family:Arial;">On Sun, Feb 19, 2017, at 10:57 PM, Xiaodi Wu via swift-evolution wrote:<br></div>
</div>
<blockquote type="cite"><div>Left unsaid from my reply about enums is that implicit conversions should absolutely be added. We already have this magic for one particular enum, Optional.<br></div>
</blockquote></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">I can only see a generalization of this being used for evil. Perhaps that's best left to be discussed on some other knock-down, drag-out thread.<br></div>
<div style="font-family:Arial;"><br></div>
<div><blockquote type="cite"><div>I'm not arguing with you that enums are currently unsuitable. In fact I entirely agree. But Chris Lattner and others have said (now I'm paraphrasing, but I believe accurately) that they *should* be. What will it take? At minimum, some way to opt into implicit conversions. It's a no-brainer in my mind.<br></div>
<div><div style="font-family:Arial;"><br></div>
</div>
<div>Bottom line: the language needs one excellent way to model Foo | Bar | Baz, not two or three mediocre workarounds. The core team has said that they want that excellence to be built through enums. Let's do it.<br></div>
</blockquote><div style="font-family:Arial;"><div style="font-family:Arial;"><br></div>
</div>
<div style="font-family:Arial;">I don't understand how extending protocols to parallel the changes we already made to classes — and in line with what's planned for enums — is a mediocre workaround.&nbsp;<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">I have low confidence in Evolution being able to produce a passable union type design in a meaningful amount of time, particularly for Swift 4 Phase 2; I also question their need in the first place.<br></div>
</div>
<div style="font-family:Arial;"><br></div>
<div id="sig40804545"><div class="signature"><span class="font" style="font-family:arial, sans-serif, sans-serif">Sincerely,</span><span class="font" style="font-family:arial, sans-serif, sans-serif"></span><br></div>
<div class="signature"><span class="font" style="font-family:arial, sans-serif, sans-serif">&nbsp; Zachary Waldowski</span><span class="font" style="font-family:arial, sans-serif, sans-serif"></span><br></div>
<div class="signature"><span class="font" style="font-family:arial, sans-serif, sans-serif">&nbsp;&nbsp;</span><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><br></div>
</body>
</html>