On Thu, Apr 11, 2019 at 11:56 AM Dumitru Ungureanu <itmit...@gmail.com> wrote:
>
> Secondly, as far as my knowledge goes:
>
> your example is declaring the function in place, it doesn't  pass the 
> variable around to another function

The `w` variable is visible in the closure. Closure is a function +
closed over variables. So i'd say `w` is passed. Alternative spelling
for effectively the same: https://play.golang.org/p/eSZ-1zY35SK

HTH

-- 
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