Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #9725
| Message-ID | <1948058.aqSPkdTlGX@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2011-12-28 16:48 +0100 |
| Subject | Re: Explicit zero-initialization of vars |
| Newsgroups | comp.lang.javascript |
| References | <7351867e-b6e5-457f-a080-bd03a2db9006@t30g2000vbx.googlegroups.com> <f033690e-4c08-4c61-b872-94c2739fff74@l19g2000yqc.googlegroups.com> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Michael Haufe (TNO) wrote: > On Dec 28, 2:53 am, Archos <raul....@sent.com> wrote: >> Is it recommended make zero-initialization of vars explicit? >> >> By example: >> >> `var i = 0` instead of `var i` // for an integer >> `var s = ""` instead of `var s` // for a string > > No. It depends. PointedEars -- Danny Goodman's books are out of date and teach practices that are positively harmful for cross-browser scripting. -- Richard Cornford, cljs, <cife6q$253$1$8300dec7@news.demon.co.uk> (2004)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Explicit zero-initialization of vars Archos <raul.san@sent.com> - 2011-12-28 00:53 -0800
Re: Explicit zero-initialization of vars "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2011-12-28 05:19 -0800
Re: Explicit zero-initialization of vars Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-28 16:48 +0100
Re: Explicit zero-initialization of vars "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-12-28 15:44 +0200
csiph-web