Haskell: why the convention to name a helper function “go”?

后端 未结 3 999
天涯浪人
天涯浪人 2020-12-04 13:04

I see go a lot when reading Haskell material or source, but I\'ve never been really comfortable about it - (I guess it has the negative connotation of \"goto\"

3条回答
  •  臣服心动
    2020-12-04 13:57

    Obviously Don's answer is the correct one. Let me just add in a small detail (since it seems to be my writing that you're directly referring to): go is nice because it's only two letters.

    Oh, and the reason the Yesod book devotes so much content to the enumerator package is because I'd already written up the three-part tutorial of enumerator as a blog post series, so decided I may as well include it in the book. The enumerator package is used in a number of places throughout Yesod, so it is relevant.

提交回复
热议问题