Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: (Sort of) newbie trying to understand "array.length" Date: Mon, 22 Feb 2016 12:23:41 +0000 Organization: A noiseless patient Spider Lines: 21 Message-ID: <8760xhylv6.fsf@bsb.me.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="32551"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183jf274zc6Viuur0o/ZhoEPMNVWHWCE7k=" Cancel-Lock: sha1:9rroC1cXvA4lEDCoLSQuZ6aNGOs= sha1:SwFMvEA3+ELrKJ3h4baO/Ix8PH0= X-BSB-Auth: 1.3fad87bc841e939e1b4b.20160222122341GMT.8760xhylv6.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:29652 ram@zedat.fu-berlin.de (Stefan Ram) writes: > Critics of the dot notation say that »attribute( pointer )« > aligns better with mathematical notation because »attribute« > usually is a fixed name, while »pointer« can vary. > > However, in »o.f( x, y )«, it is made clear that the > late-binding (run-time polymorphism) only happens with > respect to »o«, not to the other arguments. > > Some languages, such as Smalltalk or Lisp, do not use dot > notation. IIRC, Smalltalk does not have multi-methods, > while CLOS might have them. For multimethods, »f( o, x, y )« > might better agree with the semantics. The obvious extension of the attribute(pointer) syntax the a method call would be f(o)(x, y) which looks fine to me. (Not that I mind the dot notation either.) -- Ben.