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

Your description on deleting files not being protected by the type system is the result of side effects at runtime.

The point of the OP was discussing the safety that can be achieved from pure code.



I feel like I addressed this fully in my comment. I agree with the OP - you can do great things with the Haskell type system, if you're writing pure code and if you're writing sufficiently polymorphic code. I think this is awesome!

However, aside from a few libraries and a smattering of very heavily theoretical work, no code satisfies both of those predicates. If you want to write a 'real world' application in Haskell, you're going to have to get your hands dirty with IO and with concrete types, which means that the ability of the type system to prevent you from shooting yourself in the foot is severely curtailed.




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

Search: