On Sun, 26 May 2019 13:50:13 -0500
Robert Engels <reng...@ix.netcom.com> wrote:

> This is an advantage that Java offers over Go for concurrent programming.
> Since everything is reference you don’t face this distinction. Which is why
> most Go uses channels, which are implemented with locks.

It would be good and fruitful to self educate a bit about Go language, in this
case builtin type string [1], before throwing at a Go newcomer Java's concepts
and ways as ones suitable for Go programming.

FYI. In Go, type string **is a reference type**, it consists of a pointer to the
(immutable) bytes array and a len field.

P.S. To the vigil CoC enforcers: I consider your reprimand as already received:)
Please note that I have used no forbidden t- and s-words, even if they would
be more than appropriate.

Sigh,

[1] https://go101.org/article/string.html

-- 
Wojciech S. Czarnecki
 << ^oo^ >> OHIR-RIPE

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/20190526222528.152fa50e%40zuzia.
For more options, visit https://groups.google.com/d/optout.

Reply via email to