Scott Meyers' DConf 2014 keynote "The Last Thing D Needs"
Wyatt via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Thu May 29 06:39:28 PDT 2014
On Thursday, 29 May 2014 at 10:01:17 UTC, Jonathan M Davis via
Digitalmars-d-announce wrote:
>
> ??? C, C++, and D all have multi-dimensional arrays. e.g.
>
> int a[5][6]; // C/C++
> int[6][5] a; // D
> int** a; // C/C++
> int[][] a; // D
> int* a[5]; // C/C++
> int[5][] a; // D
>
> I don't see how you could argue that they don't have
> multi-dimensional arrays.
I'd guess he's contrasting with the semantics offered by
array-oriented languages. For example, can you determine the
rank of those arrays programmatically in constant time? Does the
type system understand the shape, and can it be reshaped
trivially? Does an operator or function expecting rank n
automatically lift to higher ranks? That sort of stuff.
Maybe D does something I haven't learned about (yet) in that
area, but I know C and C++ do not (hence the heap corruption I've
been hunting all week).
-Wyatt
More information about the Digitalmars-d-announce
mailing list