> I think we are conflating (at least) two different issues
For sure, I have absolutely no idea how your comment relates to what I wrote.
Re:You Want Modules, Not Microservices
by worldsayshi on Tuesday January 03, 2023 @09:12AM
(#34231509)
Oops, it looks like I answered the wrong comment here. :/
Most of the time when I split out a method what I want is a closure that is clearly separated from the rest of the code. If I can have such closures, where input and output is clearly scoped, without defining a new method, that might be preferable. Lambdas could be one way to do it but they still inherit the surrounding closure so it's typically not as isolated as a method.