News/info on Go and Java
retard
re at tard.com.invalid
Thu Nov 26 09:05:24 PST 2009
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.
More information about the Digitalmars-d
mailing list