2 ms·
Ruby and Swift (and other languages I'm pretty sure) allow you to have named functions nested in functions
by polarcuke 8y ago
Ruby and Swift (and other languages I'm pretty sure) allow you to have named functions nested in functions
- bunderbunder 8y agoWhat the video specifically suggested was not any old nested function, it was nested functions that do not capture upvalues from their context.
- totony 8y agoPHP has those (e.g. function() use ($var) { })