FAQ

On 2013/2/19 Johann Höchtl wrote:
Bumping, as I consider it a sane proposal
It seems ridiculously strict to forbid people from writing:

result := Function()
DoSomethingWith(result)

It looks like perfectly valid code and I wouldn't want to litter it
with "_ := &result".
You should rather use a govet-like tool to detect shadowing and filter
out those you don't like.

Rémy.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

People

Translate

site design / logo © 2021 Grokbase