问题描述
当您熟悉LISP时学习F#的额外价值是什么?
- > (包含类型推断)
- ,被称为工作流程,提供了一个不错的
很多这些都是编程语言世界相对最新的发展。在F#中你会看到你不会在Lisp中看到的东西,尤其是Common Lisp,因为F#标准还在开发中。因此,你会发现有很多东西需要学习。当然,像ADT,模式匹配,monads和currying这样的东西可以在Lisp中构建为一个库,但学习如何使用它们的方便内置的语言更好。
学习F#用于实际应用的最大优势是与.NET集成。
What is the added value for learning F# when you are already familiar with LISP?
- Static typing (with type inference)
- Algebraic data types
- Pattern matching
- Extensible pattern matching with active patterns.
- Currying (with a nice syntax)
- Monadic programming, called 'workflows', provides a nice way to do asynchronous programming.
A lot of these are relatively recent developments in the programming language world. This is something you'll see in F# that you won't in Lisp, especially Common Lisp, because the F# standard is still under development. As a result, you'll find there is a quite a bit to learn. Of course things like ADTs, pattern matching, monads and currying can be built as a library in Lisp, but it's nicer to learn how to use them in a language where they are conveniently built-in.
The biggest advantage of learning F# for real-world use is its integration with .NET.
这篇关于如果你已经知道LISP,你为什么还想学习F#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!