Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Aleksandro Newsgroups: comp.lang.javascript Subject: Re: array-like objects Date: Fri, 1 Jan 2016 22:19:05 -0300 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: <1656357.Svvq5yUOXB@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 2 Jan 2016 01:16:29 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="3bb0fced1de70649df863026b02cdb5f"; logging-data="9536"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18c8daAR1diYeGcZ+FKTeoh9QYKsX/5OT8=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 In-Reply-To: <1656357.Svvq5yUOXB@PointedEars.de> Cancel-Lock: sha1:IKtkMdiibBQGN6SMXcRata/YSzk= Xref: csiph.com comp.lang.javascript:29098 On 01/01/16 21:30, Thomas 'PointedEars' Lahn wrote: > Aleksandro wrote: > ^^^^^^^^^^ > Your last name belongs there as well. > >> On 01/01/16 15:11, Stefan Ram wrote: >>> So, the only thing we require for an object to be »array-like« >>> is a length property with an appropriate value? >> >> Sounds reasonable as Javascript is considered a duck typed language. >> https://en.wikipedia.org/wiki/Duck_typing > > There is no “Javascript”. Just for the record, what group are we in? > _ECMAScript implementations_ are _not_ “duck typed language[s]”; instead, > most of them support dynamic type-checking (often misnamed “loose typing”). > > “Duck typing” is a programming technique instead that can be used with > programming languages that support dynamic type-checking, but also with > other programming languages.