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


Groups > comp.lang.javascript > #29652

Re: (Sort of) newbie trying to understand "array.length"

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.javascript
Subject Re: (Sort of) newbie trying to understand "array.length"
Date 2016-02-22 12:23 +0000
Organization A noiseless patient Spider
Message-ID <8760xhylv6.fsf@bsb.me.uk> (permalink)
References <b99c7479-d78d-4e99-b6e7-c3e6d2010e6c@googlegroups.com> <array-20160221194511@ram.dialup.fu-berlin.de> <dot-notation-20160222025430@ram.dialup.fu-berlin.de>

Show all headers | View raw


ram@zedat.fu-berlin.de (Stefan Ram) writes:
<snip>
>   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.

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


Thread

(Sort of) newbie trying to understand "array.length" bit-naughty@hotmail.com - 2016-02-21 09:51 -0800
  Re: (Sort of) newbie trying to understand "array.length" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-21 23:48 +0100
    Re: (Sort of) newbie trying to understand "array.length" Scott Sauyet <scott.sauyet@gmail.com> - 2016-02-25 06:24 -0800
  Re: (Sort of) newbie trying to understand "array.length" John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-22 11:03 +0000
  Re: (Sort of) newbie trying to understand "array.length" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-02-22 12:23 +0000
  Re: (Sort of) newbie trying to understand "array.length" Aleksandro <aleksandro@gmx.com> - 2016-02-22 11:57 -0300
    Re: (Sort of) newbie trying to understand "array.length" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-22 21:19 +0100
      Re: (Sort of) newbie trying to understand "array.length" "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-02-23 11:22 +0100
        Re: (Sort of) newbie trying to understand "array.length" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-23 20:50 +0100
  Re: (Sort of) newbie trying to understand "array.length" "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-02-23 11:20 +0100

csiph-web