Skip to content

need "Go For D Programmers" page for comparing #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gopherbot opened this issue Nov 11, 2009 · 7 comments
Closed

need "Go For D Programmers" page for comparing #52

gopherbot opened this issue Nov 11, 2009 · 7 comments

Comments

@gopherbot
Copy link
Contributor

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: ?
@rsc
Copy link
Contributor

rsc commented Nov 11, 2009

Comment 1:

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Nov 11, 2009

Comment 2:

Status changed to Thinking.

@gopherbot
Copy link
Contributor Author

Comment 3 by aliloko:

As a D programmer, i think that Go looks like D retarded cousin. 
It might become better in the future, but in the current state it's lightyears behind.

@gopherbot
Copy link
Contributor Author

Comment 4 by erik.engheim:

I agree, but with some modification. I think to many it seems like D and Go try to fill
the same niche. So I think 
clarifying the difference is worth doing. D might seem too obscure to bother with, but I
think for the group of 
people who would get into Go at this stage, D is probably quite well known. It is not
like Go is any less obscure 
than D.
Personally if I was to sum up the difference then I'd say D is about taking the
philosophy behind C++ and doing 
it right, while Go is more about making a very modern version of C (taking cues from
script languages).

@gopherbot
Copy link
Contributor Author

Comment 5 by aliloko:

Then it may be better to talk about this vision than comparing syntactical difference.

@rsc
Copy link
Contributor

rsc commented Apr 7, 2010

Comment 6:

I don't think this is going to happen on the main site.
I hope someone will write a nice blog post that we
can point people at, and there has been discussion
on the mailing list that might be interesting too.

Status changed to WorkingAsIntended.

@gopherbot
Copy link
Contributor Author

Comment 7:

CL https://golang.org/cl/123240043 mentions this issue.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants