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


Groups > comp.lang.javascript > #9329

Re: Defining Constants

From Dr J R Stockton <reply1150@merlyn.demon.co.uk>
Newsgroups comp.lang.javascript
Subject Re: Defining Constants
Date 2011-12-16 22:45 +0000
Organization Home
Message-ID <Jdl9urMGo86OFwTu@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <c8nke7t4hcpkapltpsntad1d55k7le2q8u@4ax.com>

Show all headers | View raw


In comp.lang.javascript message <c8nke7t4hcpkapltpsntad1d55k7le2q8u@4ax.
com>, Thu, 15 Dec 2011 14:42:00, Gene Wirchenko <genew@ocis.net> posted:

>
>1) Defined in Object
>
>     function JustDate()
>       {
>...
>       this.JDFmtISO8601=1;
>       this.JDFmtIMA=2;
>...

Avoid "JD" in this context; it already has an established meaning in
connection with dates.

Consider also

var GWC = { JDFmtISO8601 : 1 , JDFmtIMA : 2 , ... }

-- 
 (c) John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v6.05   MIME.
   Web  <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
 Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
 Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

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


Thread

Defining Constants Gene Wirchenko <genew@ocis.net> - 2011-12-15 14:42 -0800
  Re: Defining Constants Stefan Weiss <krewecherl@gmail.com> - 2011-12-16 01:04 +0100
  Re: Defining Constants Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-16 22:45 +0000

csiph-web