Get Programming with Haskell 评价人数不足
读书笔记 Lesson 2: Functions and functional programming

In most programming languages, variables are declared before they’re used. This convention in most programming languages is partially the byproduct of being able to change state. Variable order matters because you can always reassign the value of something after you’ve assigned it. In Haskell, because of referential transparency, this isn’t an issue. There’s also a readability gain with the Haskell approach: if you read the algorithm, the intention is clear right away.



《Get Programming with Haskell》的全部笔记 8篇
免费下载 iOS / Android 版客户端