2 ms·
The part about 'with' and 'else' is interesting but slightly conractictory with the part about handling errors in the "higher" function. That being said, my ma
by phtrivier 5y ago
The part about 'with' and 'else' is interesting but slightly conractictory with the part about handling errors in the "higher" function.
That being said, my main issue with nested 'with' (or nested 'case', for that matter), is that nothing helps you make sure you handled all the possible way for any of the nested function to fail.
And someone, someday, is going to add another way for one of the functions to fail, and you will not have written a handler for that because you're not clairvoyant. And you won't notice until it crashes in prod, and your customer complains.
Good advice overall, otherwise !