Differing semantics between multidimensional fixed-length array and slice initialization
Nicholas Smith
nmsmith65 at gmail.com
Mon Apr 1 01:42:44 PDT 2013
Ali, thanks for the justification. It makes enough sense, and at
least int[][](2, 3) matches the order in which you access the
elements.
I agree with Bearophile though that the syntax is very messy when
you're mixing array types and pre/postfix declarations. If you
weren't shooting for C family syntax I'm sure array declarations
could be handled more gracefully.
More information about the Digitalmars-d-learn
mailing list