Thu, 26 Nov 2009 11:58:23 -0500, bearophile wrote: > Sergey Gromov: >> var slice []int = array[5:7]; > > Is []int better than int[] ? > > [5:7] is a slice syntax a bit better than [5..7] (and it's used in > Python). But in D [5:7] is the literal for an AA...
You could change to syntax for AAs to be 5 -> 7 since D doesn't use -> for lambdas :) And even when D starts supporting them, they could use => instead.