On Monday, 12 January 2015 at 09:31:25 UTC, Walter Bright wrote:
On 1/11/2015 11:53 PM, Tobias Pankrath wrote:
On Monday, 12 January 2015 at 00:51:25 UTC, Walter Bright wrote:
This matters very much for pipeline style programming (i.e. ranges and
algorithms).

Here is one approach to it: http://fsharpforfunandprofit.com/posts/recipe-part2/

I don't fully understand it, but it appears to require that each component have two paths coded into it - the regular path, and the error path, and there has to be adapters for components that only have a regular path. Exceptions means only one path has to be coded.

I do understand that the packed error code technique can be made to work, but the inconvenience seems to be high.

Not really, after you have the library that can handle all code paths, the code just needs to be written using such building blocks[0], as they are quite general.

Which is relatively easy in FP first languages.

[0] Aka monadic combinators


Reply via email to