Does Go support lambda expressions or anything similar?
I want to port a library from another language that uses lambda expressions (Ruby).
Does Go support lambda expressions or anything similar?
I want to port a library from another language that uses lambda expressions (Ruby).
Yes, but it is a lambda expression in its fullest form, closures and all. You don't get type inference with function literals however! That's what makes Go sucks!