Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: BartC Newsgroups: comp.lang.python Subject: Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?) Date: Wed, 25 Nov 2015 22:41:56 +0000 Organization: A noiseless patient Spider Lines: 27 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 25 Nov 2015 22:39:40 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="cf45b3961a050227b1103bebc3cbc15a"; logging-data="12939"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JCn6o4ALhoEgoN1gVMWdG" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <87k2p54tdr.fsf@elektro.pacujo.net> Cancel-Lock: sha1:+KcjgXmYIP3c1kFcrDXIXowD7BA= Xref: csiph.com comp.lang.python:99501 On 25/11/2015 22:16, Marko Rauhamaa wrote: > BartC : > >> I'm interested in language design because that's what I've done on and >> off for over 30 years. And I'm discussing some design decisions in >> Python. > > That *is* a fun ambition, useful or not. (At the moment, it's mostly fun. But in the past I actually needed the languages to do my job (designing microprocessor hardware). The scripting languages came a bit later, to go with my 3D graphics applications.) > You seem to have been surprised with some advanced concepts and idioms > in this discussion. Really, apart from its indentation syntax, Python > offers no unique or even rare software engineering concepts (Python's > emphasis duck-typing comes close to being distinctive). You'll find > equivalents in quite many languages, and in active, money-making uses. Maybe you're too familiar with it. But the idea of /executing/ the function and other definitions in a file, instead of they just being there, is novel. -- Bartc