Learning Haskell makes you a better programmer?

Russel Winder russel at winder.org.uk
Wed Dec 26 06:53:25 PST 2012


On Tue, 2012-12-25 at 21:50 +0100, SomeDude wrote:
[…]
> 
> As for being a better programmer after having used some advanced 
> concepts, I don't know. I think every feature of a language must 
> be used where appropriate. I've seen some Python code using 
> heavily map/filter/etc that was simply unreadable to me. In some 
> places, I find  it easier to understand for loops, while in other 
> cases, using functional style programming conveys the intent 
> better. But maybe that's just me.

Code using map/filter/reduce requires a specific reading strategy, which
is fine for people coming from Lisp/Clojure/Haskell/OCaml/Groovy/Ruby
but difficult for people coming from C, assembly language, Java, etc. C
++ and D are treading a middle ground.

BDFL has stated that list/dictionary/set comprehensions are to be
preferred over functional chaining constructs. In general this is good
advice, even for languages other than Python.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20121226/ece67ce4/attachment.pgp>


More information about the Digitalmars-d mailing list