<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">On May 25, 2016, at 7:37 AM, Leonardo Pessoa via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><div class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div class=""><div class=""><div style="font-family: Calibri,sans-serif; font-size: 11pt;" class="">Hi,<br class=""><br class="">Couldn't this be solved by using tuples? If not because the syntax is not allowed I think this would be more coherent to do it using current syntax.<br class=""><br class="">enum Planet : (mass: Float, radius: Float) {<br class=""> case mercury = (mass: 3.303e+23, radius: 2.4397e6)<br class=""> case venus = (mass: 4.869e+24, radius: 6.0518e6)<br class=""> case earth = (mass: 5.976e+24, radius: 6.37814e6)<br class=""> case mars = (mass: 6.421e+23, radius: 3.3972e6)<br class=""> case jupiter = (mass: 1.9e+27, radius: 7.1492e7)<br class=""> case saturn = (mass: 5.688e+26, radius: 6.0268e7)<br class=""> case uranus = (mass: 8.686e+25, radius: 2.5559e7)<br class=""> case neptune = (mass: 1.024e+26, radius: 2.4746e7)<br class="">}</div></div></div></div></blockquote></div><div class=""><br class=""></div>This would be my preferred solution… AFAIK, the only reason we can’t do it now is that Swift currently requires RawValue be an integer, floating-point value, or string. I don’t know why the language has this restriction, so I can’t comment on how hard it would be to change.<div class=""><br class=""></div></div><div class="">- Dave Sweeris</div></body></html>