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:[email protected]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [email protected]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to