[Nickle]Multidimensional array questions

Barton C Massey bart@cs.pdx.edu
Tue, 20 Mar 2001 21:04:01 -0800


Currently, Nickle provides no way to
initialize multidimensional arrays of
unspecified dimension:
  [*]{1,2,3}
works, but
  [*,*]{{1,2},{1,2}}
is an error.

In addition, the extra braces in initializers
are optional.  These features presumably interact.

What should happen here?  My vote is for making the extra
brackets non-optional, and allowing the syntax given
above...

Also, currently, Nickle does not allow shenanigans like
  [2,*]{{1,2},{1,2}}
or even
  [*,2]{{1,2},{1,2}}
I'm perfectly fine with this "all-or-nothing" approach: an
array expression must either give all of the dimensions or
none of them.  What do others think?

		Bart Massey
		bart@cs.pdx.edu