Path: csiph.com!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 13:37:59 +0000 Organization: A noiseless patient Spider Lines: 26 Message-ID: References: <87d1v5emhl.fsf@elektro.pacujo.net> <564e6a62$0$1620$c3e8da3$5496439d@news.astraweb.com> <56556DF8.1080407@rece.vub.ac.be> <878u5mns8z.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 13:35:42 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="cf45b3961a050227b1103bebc3cbc15a"; logging-data="8933"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/5SgDl9OJwv5FxQ/7pWdug" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <878u5mns8z.fsf@elektro.pacujo.net> Cancel-Lock: sha1:xXo3V3tEIVMv0xZO+uBuvOr4gdY= Xref: csiph.com comp.lang.python:99449 On 25/11/2015 13:06, Marko Rauhamaa wrote: > BartC : >> Then, from the point of view of a beginner, you have two distinct ways >> of representing a list of objects: a tuple and a list. Exactly why >> there have to be two is never really made clear beyond the inadequate >> explanation that one is immutable and the other mutable. > However, tuples are a way to represent records, groupings of related > values, where the semantics of each value is determined by its position > in the tuple. The members in a tuple are typically of different data > types. Using tuples in the same way that other languages implement records is going to be difficult if you can't change the values of the fields! > My "simpler" is different from your "simpler". Even C# has a lot of > advanced concepts, as maybe even Fortran does nowadays. > > My own recommendation would be Scheme, but it is even more "elitist" > than Python. OK, Lisp. (I can't actually tell the difference.) -- Bartc