If you already know LISP, why would you also want to learn F#?

前端 未结 11 1415
刺人心
刺人心 2020-12-30 13:25

What is the added value for learning F# when you are already familiar with LISP?

11条回答
  •  长发绾君心
    2020-12-30 13:40

    If you knew F# and Lisp, you'd find this a rather strange question to ask.

    As others have pointed out, Lisp is dynamically typed. More importantly, the unique feature of Lisp is that it's homoiconic: Lisp code is a fundamental Lisp data type (a list). The macro system takes advantage of that by letting you write code which executes at compile-time and modifies other code.

    F# has nothing like this - it's a statically typed language which borrows a lot of ideas from ML and Haskell, and runs it on .NET

    What you are asking is akin to "Why do I need to learn to use a spoon if I know how to use a fork?"

提交回复
热议问题