b***e 发帖数: 1419 | 1 Different people have different mind on this question.
For some people, FP is:
- Haskell
- Lisp
- ML
- Ocaml
because these languages claims themselves as functional.
For some people, FP also includes things like:
- ruby
- python
because these languages supports anonymous functions (in which case, I
belive perl also qualifies).
For some other people, any language with function constructs are FPs, in
which sense all languages are practically functional.
For me, a langauge is FP if it h | P********e 发帖数: 2610 | 2 http://en.wikipedia.org/wiki/Functional_programming
上面说JS不是
可能也没有严格定义
这FP具体优点是什么呢?
【在 b***e 的大作中提到】 : Different people have different mind on this question. : For some people, FP is: : - Haskell : - Lisp : - ML : - Ocaml : because these languages claims themselves as functional. : For some people, FP also includes things like: : - ruby : - python
| b***e 发帖数: 1419 | 3 It is said javascript was not designed purposedly to be a FP, but it turns
out it is one. The same applis to ruby/python. |
|