I recall that a long time ago there was serious discussion about making Go 
variables read-only and the final outcome was negative.

I could not follow all the different facets involved (probably couldn't 
these days, either), but it struck me recently that at least partial 
immutability for variables - a bit like a safety catch - could be achieved 
by somehow declaring a "type" of pointer to a particular object that 
forbids altering it through it. Period. I'd find that useful, sometimes.

Was that considered, that long time ago?

Lucio.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to