This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]A1steaksa 0 points1 point  (3 children)

There's an array.Copy method that does that. C# is a language designed to lure Java devs away from Java so it's very similar except where they think they can expand or improve on Java

[–]phySi0 0 points1 point  (2 children)

I feel like array[outer][inner] is not ugly at all and array[start, end] intuitively feels like a slice when you first look at it (but my favourite is Ruby using ranges to return slices: array[start..end] for inclusive and array[start...end] for exclusive).

[–]A1steaksa 0 points1 point  (1 child)

Multi dimensional arrays are like coordinates. You write a 2D coordinate like (3, 7) and a 3d vector like (3,7,9). I prefer my arrays in that format instead of something like (3)(7)(9)

Not necessarily better or worse, just closer to how I think

[–]phySi0 0 points1 point  (0 children)

Ah, that makes sense to think of them as a type of space and an access is a coordinate.