4 ms·
Being able to use methods as function values is a strange criterion to use. By that definition, Lua would be a "rigid and inflexible" language because you need
by ufo 7y ago
Being able to use methods as function values is a strange criterion to use. By that definition, Lua would be a "rigid and inflexible" language because you need to use a lambda to pass a method around:
function(x) obj:foo(x) end
- tapirl 7y agoThat is just a small detail example. I'm surprised that no other popular languages do the same as Go. In fact, Go is really more flexible than many dynamic languages in several aspects.