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


Groups > comp.lang.javascript > #9170

Re: toString Method with Parameters

Message-ID <2299122.SKD2KPVSPY@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2011-12-13 03:42 +0100
Subject Re: toString Method with Parameters
Newsgroups comp.lang.javascript
References <4g1de7t607d0sdudjmdv4mr1o4cm5hvekg@4ax.com> <jc65e1$air$1@news.albasani.net> <1663760.JFYEL58v44@PointedEars.de>
Followup-To comp.lang.javascript

Followups directed to: comp.lang.javascript

Show all headers | View raw


Thomas 'PointedEars' Lahn wrote:

> Use this:
> 
>   NewDate.prototype.toString = function (Selector) {
>     // …
>   };

This is better as it avoids confusion between constructor name and name of 
argument:

  NewDate.prototype.toString = function (selector) {
    // …
  };


PointedEars
-- 
> If you get a bunch of authors […] that state the same "best practices"
> in any programming language, then you can bet who is wrong or right...
Not with javascript. Nonsense propagates like wildfire in this field.
  -- Richard Cornford, comp.lang.javascript, 2011-11-14

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


Thread

toString Method with Parameters Gene Wirchenko <genew@ocis.net> - 2011-12-12 15:04 -0800
  Re: toString Method with Parameters Andreas Bergmaier <andber93@web.de> - 2011-12-13 01:14 +0100
    Re: toString Method with Parameters Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-13 02:41 +0100
      Re: toString Method with Parameters Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-13 03:42 +0100
      Re: toString Method with Parameters Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-14 20:59 +0000
  Re: toString Method with Parameters Richard Cornford <Richard@litotes.demon.co.uk> - 2011-12-13 04:29 -0800
  Re: toString Method with Parameters Scott Sauyet <scott.sauyet@gmail.com> - 2011-12-13 10:00 -0800
  Re: toString Method with Parameters Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-13 20:42 +0000
    Re: toString Method with Parameters Gene Wirchenko <genew@ocis.net> - 2011-12-13 17:48 -0800
      Re: toString Method with Parameters Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-15 20:36 +0000
        Re: toString Method with Parameters Gene Wirchenko <genew@ocis.net> - 2011-12-15 19:45 -0800
          Re: toString Method with Parameters Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-17 20:59 +0000
            Re: toString Method with Parameters Gene Wirchenko <genew@ocis.net> - 2011-12-19 12:07 -0800
              Re: toString Method with Parameters "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-19 20:27 +0000

csiph-web