瞎扯淡 Why a functional language?

zzz6519003 · 2019年07月27日 · 最后由 edwardzhou 回复于 2019年07月31日 · 2382 次阅读

Forget what you have heard about functional programming. Fancy words, weird ideas, bad tooling. Barf. Elm is about:

No runtime errors in practice. No null. No undefined is not a function.

Friendly error messages that help you add features more quickly.

Well-architected code that stays well-architected as your app grows. Automatically enforced semantic versioning for all Elm packages.

No combination of JS libraries can ever give you this, yet it is all free and easy in Elm. Now these nice things are only possible because Elm builds upon 40+ years of work on typed functional languages. So Elm is a functional language because the practical benefits are worth the couple hours you'll spend reading this guide.

Functional Programming? Don’t Even Bother, It’s a Silly Toy

https://medium.com/better-programming/fp-toy-7f52ea0a947e

需要 登录 后方可回复, 如果你还没有账号请 注册新账号