Lubos Pintes
unread,Sep 10, 2013, 11:59:31 AM9/10/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com
Hi,
I have a function which returns two parameters, second of them is err error.
Then I have a for loop where I will do something like
a, b, err := SomeCall()
Then a condition "if err != nil then return".
Why err is shadowed? Because of new scope? And why compiler doesn't want
to return a value? From my point of view, this would be correct.
Thanks