Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: have you had a bad experience trying to learn or use Haskell?
10 points by moldbug on April 8, 2012 | hide | past | favorite | 9 comments
Independent language researcher seeks sincere and thoughtful responses! No trolls or haters pls.


One thing I noticed as a Haskell noob is that the terse syntax makes it impossible to Google for solutions. Say I'm trying to understand a code snippet. I have to know what the (insert random string of punctuation) operator is called before I can proceed.



I wouldn't say a bad experience necessarily, but I ended up working from the O'Reilly book and Learn You a Haskell alternatively, working from the front and back of each book alternatively. That was because neither of them managed to explain things to me in the order I wanted to hear about them, and as my interest was in actually making something useful with Haskell I kept needing to look at the useful (later) parts of the books to get any of that.


There are lots of good resources at http://www.haskell.org/haskellwiki/Learning_Haskell



To read code (or math) I find life easier when I can "read" it inside my head. The terse and heavy symbolic syntax make understanding code less comfortable for me.

The other thing is that currying + lack of parens around function arguments makes it not visually clear where each argument goes or what expressions are part of what. Only someone familiar with each function and it's arity (in some Haskell-relevant sense) could read the stuff at a glance.


Very open ended question. The trickiest thing for me is the GHC "instance" extensions: TypeSynonymInstances, -XUndecidableInstances, Flexible, Overlapping, etc

--------------

I think there's general agreement that cabal has limitations:

http://www.yesodweb.com/blog/2012/04/replacing-cabal

http://www.yesodweb.com/blog/2012/04/cabal-meta

http://www.reddit.com/r/haskell/comments/qdjha/which_command...

http://www.reddit.com/r/haskell/comments/r5h81/google_summer...

http://www.reddit.com/r/haskell/comments/rurn4/cabalmeta_tra...

-----------------

Not clear if you're interested in pure language design or looking at the state of standard library, editor/testing/deployment toolchains etc but as far as language design debates go vs. the SML line, you could read Harper's

http://existentialtype.wordpress.com/2011/04/24/the-real-poi...

http://existentialtype.wordpress.com/2011/05/01/of-course-ml...


I found the Haskell operators to be particularly unenjoyable, and that's coming from someone who started to program in Perl. I don't see any logical purpose in such a large deviation from most languages even in basic things like comment operators. It felt like I was writing code in a different (spoken) language.

In short, Haskell's modernity didn't offer enough for me to consider it over Clojure.


Haskell was dead simple to learn, really easy to use, and a lot of fun.




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

Search: