哪种语言是通用编程,女#或Haskell的更好?哪种、语言、Haskell

2023-09-04 10:49:21 作者:Badguy烂好人

目前,我正在学习Haskell,哪些语言(F#或Haskell的)你preFER编程通用应用?

I'm currently learning Haskell, Which language (F# or Haskell) do you prefer for programming general purpose applications?

你认为哪是较强的语言?

Which do you think is the stronger language?

推荐答案

我会去哈斯克尔。 HackageDB 是被该语言专门编写库的大集合。在F#的情况下,你必须使用主要是未写入考虑功能性的语言库,以便他们不会为优雅来使用。但是,当然它在很大程度上取决于你有多少功能编程想做的事情和项目的限制,你想用它来做。即使是'通用'并不意味着它应该在所有情况下使用;)

I'd go for Haskell. HackageDB is a great collection of libraries that are written specifically for the language. In the case of F# you'd have to use mostly libraries that are not written with a functional language in mind so they will not be as 'elegant' to use. But, of course it depends largely on how much functional programming you want to do and constraints of the project you want to use it for. Even 'general purpose' does not mean it should be used in all cases ;)