Are there any statically-typed functional languages?

后端 未结 6 879
无人及你
无人及你 2021-02-05 10:48

I\'m coming from a statically-typed background and investigating functional programming, but I\'m not entirely excited about dynamic typing. I\'m curious about what kind of opti

6条回答
  •  广开言路
    2021-02-05 10:59

    Some statically typed languages with first-class lexical closures and guaranteed tail call elimination:

    • Standard ML (1978-1997)
    • Miranda (1983-1986)
    • CAML (1985-1995)
    • OCaml (1996-present)
    • Haskell (1990-2010)
    • F# (2005-present)

    without tail call elimination:

    • C# (1999-present)
    • Scala (2008-present)

提交回复
热议问题