3 ms·
This is a good point, and nicely matches a pattern I find myself using in JS where I just define the sub methods inline in the larger method. You get the nicet
by horsawlarway 7y ago
This is a good point, and nicely matches a pattern I find myself using in JS where I just define the sub methods inline in the larger method.
You get the niceties of a name for the folks who want it, but the code is still grouped nicely and it's easy to walk through the whole operation.
I see this much less often in languages where scoping is less flexible though.