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