Does functional programming mandate new naming conventions?

后端 未结 10 1314
借酒劲吻你
借酒劲吻你 2021-01-31 08:51

I recently started studying functional programming using Haskell and came upon this article on the official Haskell wiki: How to read Haskell.

The article claims that sh

10条回答
  •  你的背包
    2021-01-31 09:23

    I just attended a number of talks on Haskell with lots of code samples. As longs as the code dealt with x, i and f the naming didn't bother me. However, as soon as we got into heavy duty list manipulation and the like I found the three letters or so names to be a lot less readable than I prefer.

    To be fair a significant part of the naming followed a set of conventions, so I assume that once you get into the lingo it will be a little easier.

    Fortunately, nothing prevents us from using meaningful names, but I don't agree that the language itself somehow makes three letter identifiers meaningful to the majority of people.

提交回复
热议问题