| |
|
monkyyy
Posted in reply to Paolo Invernizzi
| On Friday, 17 January 2025 at 09:35:03 UTC, Paolo Invernizzi wrote:
> On Thursday, 16 January 2025 at 19:02:05 UTC, Basile B. wrote:
> I have the feeling that things like
a.map!(mapperFun).reduce!(reducerFun).array;
is only possible thanks to an exception system. A similar expressivity looks impossible for example with the idom of result tuple (error_code, actuallResult) .
that problem is currently something rather serious, in the sense that, let's say you want to make a standard library, you really need to have a well defined way of handling errors.
I'll be interested to read your thoughts on that topic.
I suggest to you to have a look how pure functional programming languages are handling such kind of constructs.
As a soft start I suggest Elm.
While they should be part of the convrsation; purity is holding back ranges and we dont have the compiler tool set of haskell.
|