Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?) Date: Thu, 26 Nov 2015 08:41:25 +0200 Organization: A noiseless patient Spider Lines: 21 Message-ID: <87si3t2rfu.fsf@elektro.pacujo.net> References: <87d1v5emhl.fsf@elektro.pacujo.net> <564e6a62$0$1620$c3e8da3$5496439d@news.astraweb.com> <565592e9$0$1615$c3e8da3$5496439d@news.astraweb.com> <87k2p54tdr.fsf@elektro.pacujo.net> <565652e1$0$1619$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="b7cb1518d23ec19d482dcc9c31d30fdd"; logging-data="22730"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190AeqlnCJr6cN3zlJHHhMb" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:7Dy2inBP9nhDtffMy+P0GTteouc= sha1:gkQhwi6gU9hEX6CLC3lPRvcvmMU= Xref: csiph.com comp.lang.python:99530 BartC : > Clearly a huge amount of programming can be done without having to deal > with first-class functions (or constructing functions at run-time; that > sounds fun). (Or without using OOP, another thing I can't stand.) Even the lowliest code monkeys deal with on-the-fly functions and OOP nowadays. You can't escape them in C# and Java, for example. > Some people just don't want to be functional programmers. It is > elitist to try and make out it that it is that important. > > If lots of languages now have functional features, it's more likely to > be a case of keeping up with the Joneses. There's some of that. Generics and closures in Java are examples. However, anonymous classes have been there in Java since the dawn of days, and they are equally "elitist" as closures. Marko