Dear list,<br><br>//this is fine<br>fun int[] foo()<br> {<br> return [1, 2, 5];<br> }<br><br>//this isn't<br>fun int[] bar()<br> {<br> return [];<br> }<br><br>ChucK and me disagree here. I'm of the opinion that "[]" is a perfectly fine array of integers (albeit of length 0) and hence correct. ChucK is of the opinion that there's a syntax error.I suppose the issue is in "[]" 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'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>