<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Same here. I can fake a bit of it now by creating the relevant types ("struct _1 {...}", etc), but it's *very* fragile.</div><div><br>On Dec 31, 2015, at 14:18, Matt Whiteside via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=utf-8"><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 31, 2015, at 09:25, Dave Abrahams via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" class=""><div class=""><br class="Apple-interchange-newline">On Dec 25, 2015, at 4:43 PM, Nickolas Pohilets via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="" style="font-family: AvenirNext-Medium; font-size: 15px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">If Swift would support non-type generic parameters, then I would like to have Boost.Unit library (<a href="http://www.boost.org/doc/libs/1_60_0/doc/html/boost_units.html" class="">http://www.boost.org/doc/libs/1_60_0/doc/html/boost_units.html</a>) available in Swift.</div></div></blockquote><div class=""><br class=""></div>Yes, that’s an excellent design. &nbsp;We really want to do this when we get the necessary language features (I hope we might also come up with some that improve readability a bit over what you can do in C++).</div></div></blockquote></div><div class=""><br class=""></div><div class="">I will do cartwheels when we can write stuff like Vector&lt;3&gt; or Tensor&lt;4,4,4&gt;. &nbsp;Glad to hear it’s on your mind, including the readability aspect.</div><div class=""><br class=""></div><div class="">Matt</div><div class=""><br class=""></div><div class=""><br class=""></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=mnFI6pg-2FTCMHnIXafbniMQOkvAOxgYUwbalcxNWA5RcPHncWah2uryDKbFEPnKliR3nok5qmJUZZlz5JteIknaOiaCrA7BhYdDaTaVjagpHPi1T-2BTRqwz-2F7pSYFgPlG-2F9nyr6-2BaeuMjYdXIVoi0gPZm-2B7ozRc3takmcPVu-2BKhFK5b9BCRv5L4HvEksLetbsqRa0yPr7BU4dZyuaIrfktePmzKQO8B3ifGPda4wA4N-2FI-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;">

</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>