Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #29096

Re: array-like objects

Path csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: array-like objects
Date Sat, 02 Jan 2016 01:30:53 +0100
Organization PointedEars Software (PES)
Lines 25
Message-ID <1656357.Svvq5yUOXB@PointedEars.de> (permalink)
References <array-like-20160101185345@ram.dialup.fu-berlin.de> <n66gli$lpt$2@dont-email.me>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1451694654 26591 eJwFwYkRADAEBMCWCMcox9t/CdmFGFu7GkxxOLvuLc8XZe7Jj6ZjRgZCjzmIQVKrm9JKVR8nqRFB (2 Jan 2016 00:30:54 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sat, 2 Jan 2016 00:30:54 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwYEBwCAIA7CXqFDQc2aF/09YQk+kKpIZHM5zgyEZX6lnGbDlOFy43vgsss6dEo3qnf3W1VsusQDu/gEv/hTo
Cancel-Lock sha1:3d4gRSiu2jKhPq+Ed2JuoGGz8n4=
X-NNTP-Posting-Host eJwVyMcRACAIAMGWAAlSDkH6L0Gd++ycLEUtYxVlmVcj4hYjCCc8MfX4N4fKgLl3HcjNTZVpfgEMxREA
Xref csiph.com comp.lang.javascript:29096

Show key headers only | View raw


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”.

_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.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.0

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: array-like objects Aleksandro <aleksandro@gmx.com> - 2016-01-01 15:33 -0300
  Re: array-like objects Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-01-02 01:30 +0100
    Re: array-like objects Aleksandro <aleksandro@gmx.com> - 2016-01-01 22:19 -0300
      Re: array-like objects Tim Streater <timstreater@greenbee.net> - 2016-01-02 08:29 +0000
      Re: array-like objects Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-01-02 10:46 +0100

csiph-web