Greenwashing
Timon Gehr
timon.gehr at gmx.ch
Fri May 29 20:02:37 UTC 2020
On 29.05.20 14:40, Meta wrote:
> On Friday, 29 May 2020 at 08:52:14 UTC, Timon Gehr wrote:
>>> I find that response surprising, given that you used to use Haskell
>>> (do you still?), which gets along fine without exceptions.
>>
>> http://hackage.haskell.org/package/base-4.14.0.0/docs/Control-Exception.html
>>
>>
>> Furthermore, imperative-style code in Haskell is based on monads,
>> which are a generalization of exceptions.
>
> I'm going to step up the pedantry and say that this proves my assertion;
> Haskell (the language) gets along fine without exceptions, but they're
> there for you to use as a library, only if you want to.
Prelude> case (1,1) of (2,2) -> 0
*** Exception: <interactive>:4:1-24: Non-exhaustive patterns in case
More information about the Digitalmars-d
mailing list