Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
polarcuke
· 7y ago · 0 comments
Ruby and Swift (and other languages I'm pretty sure) allow you to have named functions nested in functions
Comments
[–]
bunderbunder
7y ago
What the video specifically suggested was not any old nested function, it was nested functions that do not capture upvalues from their context.
[–]
totony
7y ago
PHP has those (e.g. function() use ($var) { })