<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 23, 2015 at 8:42 PM, Pavel Minaev <span dir="ltr"><<a href="mailto:int19h@gmail.com" target="_blank">int19h@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><br></div><div>That's why I love the fact that functional and declarative stuff is creeping into those mainstream imperative languages. It gradually gets me to the point where I can write neat declarative code <i>in production</i>, and no-one objects because they don't realize that it's radically different from what they're used to! (and those who do, are generally in the same boat as me and enjoy it the same). For them, it's just some new syntax that got added to the language they know and use, and so obviously it's okay by default. </div><div><br></div></div></div></blockquote><div><br></div><div>I don't think this is generally applicable.  For example look at Google's Python standards</div><div><br></div><div><a href="https://google-styleguide.googlecode.com/svn/trunk/pyguide.html">https://google-styleguide.googlecode.com/svn/trunk/pyguide.html</a><br></div><div><br></div><div>Comprehensions are only allowed for "simple cases" otherwise use a loop. No mention of fold anywhere in the document which I interpret as meaning don't use it.</div><div><br></div></div></div></div>