by spacey on 4/26/17, 10:05 AM with 131 comments
by agentgt on 4/26/17, 3:00 PM
I understand the value of having pointers even in a GC but I'am actually more concerned with the resource I'm pointing to and its lifecycle than that is pointers. That is there should be different types of pointers depending on where the data is stored and how it is reclaimed (something Rust does nicely with generics).
I'm not trying to bash Go rather I must be missing something (I don't know the language that well).
by nottorp on 4/26/17, 1:14 PM
by Aardwolf on 4/26/17, 2:50 PM
Or instead of starting with:
"This post is for programmers coming to Go who are unfamiliar with the idea of pointers or a pointer type in Go."
It could start with:
"This post is for programmers coming to Go from a language without pointers or a pointer type."
by dmix on 4/26/17, 7:10 PM
> Emerging in Sumer in the late fourth millennium BC (the Uruk IV period), cuneiform writing began as a system of pictograms. In the third millennium, the pictorial representations became simplified and more abstract as the number of characters in use grew smaller (Hittite cuneiform).
Software is very much a natural extension of the brain and how we processed the world around us.
by pavlov on 4/26/17, 1:04 PM
What kind of programming can one do without even that level of mental model of what a computer does?
by ohstopitu on 4/26/17, 8:06 PM
I've always wanted to break into Go, but pointers scare me after my experience in C in University. While I got the usefulness and it's functions (and usage), it was not something I felt comfortable with.
This definitely it easier!
by tapirl on 4/26/17, 1:34 PM
by lspears on 4/26/17, 10:41 PM
There are multiple pictures each of which is worth 1000 words. Where is my money?
by sddfd on 4/26/17, 2:08 PM
However, most languages (C, C++, etc) have different definitions of what pointers are, and many operations that seem reasonable on the machine model are in fact undefined behavior.
In C, for example, you cannot reference one object from a pointer to another object (there is one exception to this rule).