<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I'm glad you like it! I agree, it does lose the at-a-glace view of all cases. That's probably something you could still get with code-folding in the IDE, but it's still something you give up for this syntax. I would hope the small cost actually helps people stick with the old syntax for small enums, and consider this for more verbose cases.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 12, 2017, at 11:15 AM, Jay Abbott &lt;<a href="mailto:jay@abbott.me.uk" class="">jay@abbott.me.uk</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_quote"><div class="">Thanks for pointing this out Tim. I had actually read the whole thread but over a few days between other things and must have missed the relevant updates.<br class=""></div><div dir="ltr" class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto" class="gmail_msg"><div class="gmail_msg">I think you may be reacting to the very first draft. `extension` isn't used at all in the newest draft, and no code can exist outside the enum. In fact, there's a fair amount of similarity to your idea in the newest proposal.<br class="gmail_msg"><br class="gmail_msg"><a href="https://gist.github.com/timshadel/5a5a8e085a6fd591483a933e603c2562" class="gmail_msg" target="_blank">https://gist.github.com/timshadel/5a5a8e085a6fd591483a933e603c2562</a><br class="gmail_msg"><br class="gmail_msg"></div></div></blockquote><div class=""><br class=""></div><div class="">Oh yes - this is much better! Lovely in fact. Although it does lose the benefit of at-a-glance understanding of the cases present in the enum when they are on one line each (when the code gets bigger than in the example they will be quite a way apart).<br class=""></div></div></div>
</div></blockquote></div><br class=""></div></body></html>