Dear list,<br><br>//this is fine<br>fun int[] foo()<br>&nbsp; {<br>&nbsp; return [1, 2, 5];<br>&nbsp; }<br><br>//this isn&#39;t<br>fun int[] bar()<br>&nbsp; {<br>&nbsp; return [];<br>&nbsp;}<br><br>ChucK and me disagree here. I&#39;m of the opinion that &quot;[]&quot; is a perfectly fine array of integers (albeit of length 0) and hence correct. ChucK is of the opinion that there&#39;s a syntax error.I suppose the issue is in &quot;[]&quot; not having a explicid type but I said what the type was going to be up-front. In fact the only way of defining a array of length 0 seems to be this;<br>
<br>int empty_int_array[0];<br>//and while we&#39;re at it<br>float empty_float_array[0];<br>//etc<br><br>I find that less then elegant.<br><br>Yours,<br>Kas.<br>