News/info on Go and Java

bearophile bearophileHUGS at lycos.com
Thu Nov 26 08:58:23 PST 2009


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...

Bye,
bearophile



More information about the Digitalmars-d mailing list