On Tue, Jan 1, 2019 at 12:34 PM 伊藤和也 <kazya.ito.dr...@gmail.com> wrote:

> What are the reasonable reasons to use pointers? Are pointers neseccary?

Yes, they're necessary in non-trivial programs. Without pointers any
program can use only (named) variables declared in the program. Pointers
allow creating (anonymous) variables at run time accessed via the pointer.
Many useful data structures rely on variables dynamically allocated at run
time.
-- 

-j

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to