Closed
Description
by vipper36:
Go language is similar to D programming language. so this is needed. http://www.digitalmars.com/d/2.0/index.html "D is a systems programming language. Its focus is on combining the power and high performance of C and C++ with the programmer productivity of modern languages like Ruby and Python. Special attention is given to the needs of quality assurance, documentation, management, portability and reliability. " *import module D: import std.stdio; Go: import "fmt" *concat array D: a ~ b Go: a + b *array literal D: [1, 2, 3, 4] // int[4] (value type) Go: ? D: ([1, 2, 3, 4])[] // int[] (reference type) Go: [...]int{1, 2, 3, 4} // ? *array slice D: a[2..4] Go: a[2:4] D: a[0..$] Go: a[0:len(a)] *const D: const(int)* a; Go: ? *immutable D: immutable(int)* a; Go: ?