2 ms·
I understand what you mean. I think a nice middleground between our preferences would be scoped blocks with explicitly passed vars. This would keep the readabil
by dgb23 7y ago
I understand what you mean. I think a nice middleground between our preferences would be scoped blocks with explicitly passed vars. This would keep the readability you want but still have the other benefits I mentioned. Plus it would be simpler to refactor when needed.
- horsawlarway 7y agoThis 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.