Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What's so great about Haskell? It has no particular safety features compared to other languages, I think.

It won't help with with static analysis of any numeric types (though you can turn bad conversions into type errors, it can't tell if an explicit conversion is right or not) and the timing of anything is really hard to reason out.



>What's so great about Haskell?

The type system.

When I write Haskell programs, I create orders of magnitude fewer bugs than I do when writing programs in other PLs.

The language makes it very hard to screw up implementing an idea.

Haskell forces me to implement things in ways that are both elegant and easy to comprehend. Haskell does not easily admit spaghetti code.


Have you programmed any Ada?


The things that matter in critical embedded systems are typically not captured by type systems: memory boundedness, running time upper bounds, overflows,... For these things even (controlled) C is a better option than Haskell today.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: