3 ms·
You can definitely break up a function's contents into logical nested functions... Why are you saying "random points"? Nested functions can actually allow you
by purplerabbit 10y ago
You can definitely break up a function's contents into logical nested functions... Why are you saying "random points"?
Nested functions can actually allow you to even out your abstraction levels... Just group lower-level operations in more deeply nested functions. It's sort of the functional equivalent of extracting a group of similarly-leveled concepts into a new object in the OO approach.
Not sure if you were talking about C++, where my point probably doesn't apply... (Lack of nested function support, AFAIK)