Mixing object-oriented and functional programming

前端 未结 12 1879
渐次进展
渐次进展 2020-12-24 01:33

What languages are available that promote both object-oriented and functional programming? I know that any language that supports first-class functions can be considered fun

12条回答
  •  鱼传尺愫
    2020-12-24 02:30

    C#. It's imperative, which can be handy, but also has a lot of functional features. Lambdas, iterators, and LINQ are all functional.

    It probably won't appeal much to purists, but it works for me.

提交回复
热议问题