Re:Don't distract new programmers with OOP
by warrenwilkinson on Thursday March 17, 2011 @01:35AM
(#2335199)
You need monads to do any IO, that's not an easy first lesson. And you are a great distance from hardware.
[ Parent
| on HN ]
Re:Don't distract new programmers with OOP
by brehaut on Thursday March 17, 2011 @04:05AM
(#2335429)
main = print "Hello, World!"
Not a monad in sight. Yes, print is an IO Action, but you don't have to use monads to do IO. Add in 'interact' and a you can be writing trivial stdin / stdout programs very quickly.
Re:Don't distract new programmers with OOP
by anghyflawn on Thursday March 17, 2011 @02:47AM
(#2335303)
The first point is not too much of a downer, actually: it's not much harder to learn the IO monad as pure syntactic sugar than to learn printf and its ilk.