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

I think the unreadability is a consequence of libraries defining their own infix operators left and right. E.g. according to hoogle >*< is an operator for three different libraries.

Maybe this makes sense once you are very familiar with a library (like for example if you are a library dev), but if you are trying to learn a new library it makes for pretty much unreadable code.



One thing that irks me as someone who has dabbled in Haskell is not knowing how I should pronounce infix operators like <*> or <?> as I'm reading a line to myself.


<star> is pronounced either "ap" or "and" depending on context.

For example

div <$> (Just 5) <star> (Just 7)

Would be pronounced "map div over Just 5 and Just 7".


I never read operators in my head, so the answer is "no pronunciation at all"

I'd say learning Haskell caused me to read code without using words.




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

Search: