Denis Koroskin wrote:
On Wed, 25 Nov 2009 03:03:59 +0300, bearophile
<bearophileh...@lycos.com> 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 like go has arrays that support slices. Do they support appending?
If so, what's their behavior and how do they solve stomping issues?
There's no built-in means to grow a slice. An example given in
"Effective Go" appends to slices without regard to stomping or
dissolving sharing:
http://golang.org/doc/effective_go.html
Slices are obese pointers storing the pointer/length/capacity troika. I
think D is in better shape here.
Andrei