News/info on Go and Java

2009-11-24 Thread bearophile
Found on Reddit: This looks a lot like D: http://research.swtch.com/2009/11/go-data-structures.html New features in Java, some of them look like D: http://code.joejag.com/2009/new-language-features-in-java-7/ Bye, bearophile

Re: News/info on Go and Java

2009-11-25 Thread Denis Koroskin
On Wed, 25 Nov 2009 03:03:59 +0300, bearophile wrote: Found on Reddit: This looks a lot like D: http://research.swtch.com/2009/11/go-data-structures.html New features in Java, some of them look like D: http://code.joejag.com/2009/new-language-features-in-java-7/ Bye, bearophile Looks lik

Re: News/info on Go and Java

2009-11-25 Thread Andrei Alexandrescu
Denis Koroskin wrote: On Wed, 25 Nov 2009 03:03:59 +0300, bearophile wrote: Found on Reddit: This looks a lot like D: http://research.swtch.com/2009/11/go-data-structures.html New features in Java, some of them look like D: http://code.joejag.com/2009/new-language-features-in-java-7/ Bye,

Re: News/info on Go and Java

2009-11-26 Thread Sergey Gromov
Wed, 25 Nov 2009 12:27:59 +0300, Denis Koroskin wrote: > On Wed, 25 Nov 2009 03:03:59 +0300, bearophile > wrote: > >> This looks a lot like D: >> http://research.swtch.com/2009/11/go-data-structures.html > > Looks like go has arrays that support slices. Do they support appending? > If so, w

Re: News/info on Go and Java

2009-11-26 Thread bearophile
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

Re: News/info on Go and Java

2009-11-26 Thread retard
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 A

Re: News/info on Go and Java

2009-11-26 Thread Sergey Gromov
Thu, 26 Nov 2009 11:58:23 -0500, bearophile wrote: > Sergey Gromov: >> var slice []int = array[5:7]; > > Is []int better than int[] ? Well, try to read aloud int[5][10]. I come up with "Integer, five of them, ten times." While [10][5]int is "Array of ten arrays of integers." It's *much* cl