3 ms·
We have also been there in a variety of functional languages and no problems there. What runtime overhead, a function call? Pointer dereference? Even template
by AstralStorm 10y ago
We have also been there in a variety of functional languages and no problems there.
What runtime overhead, a function call? Pointer dereference? Even template magic on the error monad type won't save you from that one. The problem is shifted to the dereference. There you get either to handle an exception or error code, or explicitly check the state of the object.
Nested lambdas do work reasonably well.
But remember, were generally talking about error handling, not a callback that is supposed to run big transforms.