I see.

I'm trying to find rationale for this:  why is "defer foo(x)" treated 
differently than "defer func() { foo(x) }" by the language designers?

On Thursday, 28 September 2017 17:57:45 UTC+5:30, Jan Mercl wrote:
>
> On Thu, Sep 28, 2017 at 2:18 PM Karan Chaudhary <fgh...@gmail.com 
> <javascript:>> wrote:
>
> That's expected, the specs say that execution of the defer statement 
> evaluates the arguments of the deferred function.
>
> -- 
>
> -j
>

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

Reply via email to