<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 28, 2016, at 2:40 PM, Jacob Bandes-Storch &lt;<a href="mailto:jtbandes@gmail.com" class="">jtbandes@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">What is a "type-level integer expression"? The only thing I can think of is allowing numeric parameters to generics, like "Tuple&lt;4, Int&gt;", but I don't think that's what you're talking about.</div></div></blockquote><div><br class=""></div><div>That's what I mean, yeah. If we allow integers as type parameters, you'd conceivably want to use integer literals and expressions in this position too.</div><div><br class=""></div><div>-Joe</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><br clear="all" class=""><div class=""><div class=""><div dir="ltr" class=""><div class="">Jacob</div></div></div></div>
<br class=""><div class="gmail_quote">On Thu, Jan 28, 2016 at 2:38 PM, Joe Groff <span dir="ltr" class="">&lt;<a href="mailto:jgroff@apple.com" target="_blank" class="">jgroff@apple.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br class="">
&gt; On Jan 28, 2016, at 2:37 PM, Joe Groff &lt;<a href="mailto:jgroff@apple.com" target="_blank" class="">jgroff@apple.com</a>&gt; wrote:<br class="">
&gt;<br class="">
&gt;<br class="">
&gt;&gt; On Jan 28, 2016, at 2:36 PM, Jacob Bandes-Storch &lt;<a href="mailto:jtbandes@gmail.com" target="_blank" class="">jtbandes@gmail.com</a>&gt; wrote:<br class="">
&gt;&gt;<br class="">
&gt;&gt; I like this idea, but the syntax seems dangerously close to a call site for&nbsp; "func *(lhs: Int, rhs: Any.Type)"&nbsp; (which is obviously ill-advised, but it is allowed).<br class="">
&gt;&gt;<br class="">
&gt;&gt; Maybe we could take advantage of something which would be very invalid under the current grammar, namely (n T) rather than (n * T):<br class="">
&gt;&gt;<br class="">
&gt;&gt;&nbsp; &nbsp; let values: (4 Int) = (1, 2, 3, 4)<br class="">
<br class="">
</span>Bare juxtaposition might be problematic if we ever do introduce type-level integer expressions, though.<br class="">
<span class=""><font color="#888888" class=""><br class="">
-Joe</font></span></blockquote></div><br class=""></div></div>
</div></blockquote></div><br class=""></body></html>