|| at Aug 8, 2013 at 2:16 pm
Am Donnerstag, 8. August 2013 15:51:45 UTC+2 schrieb
Thanks for your answer! Of course, you are right. But IMO this example
doesn't make sense because if there is an error, the program exists. In
other (error) cases there may be a "return" statement so the function
exits. If an error occurs, the program never reaches the last three lines.
Therefore I think they are redundant. But maybe I'm wrong...
First: This is an example, not industrial strength code.
Second: As Jan explained: The for loop may terminate because Next yields
This can be because of a new error which has not been handled by any code
so far. But will be handled by the last three lines if this end to for was
of an error.
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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/groups/opt_out.