Hacker News new | past | comments | ask | show | jobs | submit login

Warning. I think I'm right with these things but I'm also very new to Haskell

> How is "m >>= f" pronounced?

If I'm not mistaken ">>=" is the bind function and could be written like:

    bind m f
Meaning that "m >>= f" is pronounced as "bind m to f". What it's doing is:

    main = do
        m <- SomeActionReturningMonad
        f m
Are you saying that a language that uses symbols isn't a language? Is Japanese a language since it uses symbols (glyphs? correct me if I'm wrong).

If you are talking about programming languages specifically, do you believe that "plus" should be used in place of "+"? Now I'm not going to get absurd and assume you mean using "parenthesis_start" in place of "(", but just in case... I will ask if you are.

Also, in Haskell specifically there are matching functions for those.




No, see below, I just think that if you write something is "easy to understand" and then you go on and explain it using unknown (to the reader) symbols without given the symbols pronounceable names, you're doing it wrong. One of the tricks that helped me most when learning more advanced math was to learn "reading"/"pronouncing" formulas first and understanding them second. It feels very nice and intuitive. That's why I'm always annoyed when people explain something using very ___domain-specific symbols and don't provide any way to "read" them.


I misunderstood your parent comment then I think. I prefer the Haskell tutorials (especially for beginners) that use the function and then provide the shorthand symbol to do it with.

You can also search those symbols on Hoogle[1] or if it is a builtin keyword the Haskell keywords page[2] can be useful.

1. http://www.haskell.org/hoogle/ 2. http://www.haskell.org/haskellwiki/Keywords




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

Search: