|
|
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> Orchid XP v8 wrote:
>>> make a typo in a C program, the program stops and says "error:
>>> segmantation fault".
>
>> *If* you're lucky. What's worse is when it *doesn't*. :-)
>
> You seriously claiming that if you make a typo in Haskell, it always
> magically knows that and gives you an error message?
Me? No.
I'm saying you're lucky if when you make a mistake in C you get a segfault.
If you're unlucky, you clobber some random unrelated variable that *is*
allocated and things progress as normal except with totally undefined results.
If you make a mistake in Haskell such that the results are undefined, it
stops in a way that's probably pretty easy to debug compared to a segfault in C.
--
Darren New, San Diego CA, USA (PST)
Human nature dictates that toothpaste tubes spend
much longer being almost empty than almost full.
Post a reply to this message
|
|