Comments on: IO doesn’t matter: telling C programmers the key to the Haskell weltanschauunghttps://syntaxfree.wordpress.com/2007/02/15/io-doesnt-matter/
Haskell programming journalSat, 09 May 2015 05:08:04 +0000hourly1http://wordpress.com/By: autoresponder texthttps://syntaxfree.wordpress.com/2007/02/15/io-doesnt-matter/#comment-7362
Mon, 06 Oct 2014 05:38:41 +0000http://syntaxfree.wordpress.com/2007/02/15/io-doesnt-matter-telling-c-programmers-the-key-to-the-haskell-weltanschauung/#comment-7362If some one wants to be updated with most up-to-date technologies therefore he must be pay
a visit this site and be up to date everyday.
]]>By: diefire71https://syntaxfree.wordpress.com/2007/02/15/io-doesnt-matter/#comment-3368
Wed, 01 Jun 2011 20:50:58 +0000http://syntaxfree.wordpress.com/2007/02/15/io-doesnt-matter-telling-c-programmers-the-key-to-the-haskell-weltanschauung/#comment-3368Excellent post! I’ve bookmark this site to return later. cheers! aF8c! order proactol wX1SA
]]>By: Frank L. Quednauhttps://syntaxfree.wordpress.com/2007/02/15/io-doesnt-matter/#comment-1237
Thu, 24 May 2007 13:41:35 +0000http://syntaxfree.wordpress.com/2007/02/15/io-doesnt-matter-telling-c-programmers-the-key-to-the-haskell-weltanschauung/#comment-1237Come on, don’t be so abstract – one could at least say that the big function (or bla) needs to map between string and string (:t bla … bla :: [Char] -> [Char])
and the whole input is treated as a single string. if you’d like to get every string that is separated by a new line, you’ll have to do a bit more work…

]]>By: pozorvlakhttps://syntaxfree.wordpress.com/2007/02/15/io-doesnt-matter/#comment-1030
Sun, 06 May 2007 15:28:16 +0000http://syntaxfree.wordpress.com/2007/02/15/io-doesnt-matter-telling-c-programmers-the-key-to-the-haskell-weltanschauung/#comment-1030This isn’t so much a distinction between imperative and functional languages, as it is between high- and low-level languages. In Perl, for instance, writing Unix pipes is trivial: while () {
print some_function($_);
}

Or just invoke perl with the -p switch, to wrap the whole program with “while () { … print $_; }”. Note that that’s actually a better Unix citizen than something written with interact, as it does the Right Thing with respect to files specified on the command-line, Ctrl-D, etc. Writing pipes is also pretty trivial in Ruby, Python, etc. It’s nontrivial in C not because it’s imperative, but because it’s low-level – because you need to mess around with strings as pointers to arrays of chars, and so on.

]]>By: Stevehttps://syntaxfree.wordpress.com/2007/02/15/io-doesnt-matter/#comment-404
Sat, 17 Feb 2007 03:56:44 +0000http://syntaxfree.wordpress.com/2007/02/15/io-doesnt-matter-telling-c-programmers-the-key-to-the-haskell-weltanschauung/#comment-404I guess times have changed. These days, when you have pick up a book about an imperative language (Ruby, Java, Python), most people can’t wait to get past simple console programs and start to build GUIs. If anything, Haskell tutorials are the ones most likely to delay talking about IO.

interact has some subtleties you haven’t discussed so it’s not all beer and skittles.