本文介绍了Haskell与现实世界中的程序编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些天,我正在认真研究函数式编程。

虽然我对Haskell及其似乎提供的可能性感到非常兴奋,但现在我也可以看到,它需要我花一些时间来学习。在关于的SO问题中,一个答案指出,如果不是,则需要几个月的时间b
$ b现在,我知道C,PHP,一些面向对象的东西等等。有人告诉我,Haskell没有太多用处那么在现实世界中,我会更好地提高我所熟悉的常规语言的技能吗?哈斯克尔是值得的斗争?



在这个问题上,结论似乎是函数式编程将赶上。但肯定程序编程会保持在最前面,对吧?



编辑:keparo很好地阐明了我的问题:与程序语言相反,它对我有价值吗?研究Haskell和函数式编程范例? 解决方案

Haskell并不像人们喜欢的那样难学习。哈斯克尔打开了一个你从来不知道的新世界。学习和其他语言一样有价值。你可能找不到需要你做Haskell编程的工作,但这真的意味着一种语言没有价值吗?



Haskell会教你很多新东西,它会告诉你如何用你/你所使用的语言更好地编程。你可以在空闲时间做你自己的个人项目。


如果你将真实世界定义为真实世界,那么Haskell在真实世界中的用处不大现金生成器。所以,如果这是你的目标,那么你可能不得不重新考虑目标:p

另外,我不太喜欢选择如何学习haskell的那部分答案。掌握任何语言需要几个月甚至几年的时间,而不仅仅是Haskell。取决于你如何定义主。我可以使用Haskell达到相当高的效率,而且我只学习了一个月,而且我一直在慢慢地学习它。


These days I'm getting seriously into functional programming.

While I'm really excited about Haskell and the possibilities it seems to offer, I can also see now that it is going to take me a while to learn. In an SO question on How to learn Haskell an answer states that it'll take months if not years to actually "master" it.

Now, I know C, PHP, some object oriented stuff, etc. And having been told that Haskell isn't much used out there in "the real world", will I be better off improving my skills in the regular languages I know? Is Haskell worth the struggle?

In this question on Why people think functional programming will catch on the conclusion seems to be that functional programming will "catch on". But surely procedural programming will stay on top, right?

EDIT: keparo nicely clarifies my question to: As opposed to procedural languages, will it be valuable for me to study Haskell and functional programming paradigms?

解决方案

Haskell isn't as hard as people like to make out to learn. Haskell opens up a new world that you never knew existed for you. It's as valuable to learn as any other language. You might not find a job requiring you to do Haskell programming, but does that really mean a language isn't valuable?

Haskell will teach you a lot of new stuff, and it will show you how to program even better in the languages you /do/ work with. You can do your own personal projects in your spare time with it.

Haskell isn't really used much in the "real world" if you define "real world" as "cash generator". So if that is your objective, then you might have to rethink objectives :p

Also, I don't really like that part of chosen "how to learn haskell" answer. It takes months to years to master any language, not just Haskell. Depending on how you define "master". I can use Haskell to a pretty good degree of efficiency and I've only been learning it for a month, and I've been taking it slow even.

这篇关于Haskell与现实世界中的程序编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-03 18:03