Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #11723
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news-peer.in.tum.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Jake Jarvis <pig_in_shoes@yahoo.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Why is this a closure? |
| Date | Sun, 12 Feb 2012 14:31:11 +0100 |
| Lines | 34 |
| Message-ID | <9ppt8vFp3dU1@mid.uni-berlin.de> (permalink) |
| References | <4f37ab8b$0$6874$e4fe514c@news2.news.xs4all.nl> <9pps33FfffU1@mid.uni-berlin.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-15; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de WhMcbHR19oY7vZtya6ckvwyRqK05wkcyCj1kMfLST1hVlF5/U= |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111229 Thunderbird/9.0 |
| In-Reply-To | <9pps33FfffU1@mid.uni-berlin.de> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.javascript:11723 |
Show key headers only | View raw
On 12.02.2012 14:10, Jake Jarvis wrote: > On 12.02.2012 13:07, Tom de Neef wrote: >> When I run the code below through JSLint, the report says: >> Global test >> 1 test() >> Closure compare >> ... >> >> I thought I had understood the concept of closure: > <snip> > > From JSLint's manual > > http://www.jslint.com/lint.html#report > > | Report > | > | If JSLint is able to complete its scan, it generates a function > | report. It lists for each function: > | ... > | /Closure/: The variables and parameters that are declared in the > | function that are used by its inner functions. > Just to clarify, that is just what JSLint means with that word in the context of its report, it's not a definition for what the word 'closure' means outside of that particular context for most people. For a non-JSLint-report-specific definition you could look at http://www.jibbering.com/faq/notes/closures/#clDefN -- Jake Jarvis
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Why is this a closure? "Tom de Neef" <tdeneef@qolor.nl> - 2012-02-12 13:07 +0100
Re: Why is this a closure? Jake Jarvis <pig_in_shoes@yahoo.com> - 2012-02-12 14:10 +0100
Re: Why is this a closure? Jake Jarvis <pig_in_shoes@yahoo.com> - 2012-02-12 14:31 +0100
Re: Why is this a closure? "Tom de Neef" <tdeneef@qolor.nl> - 2012-02-12 14:42 +0100
Re: Why is this a closure? RobG <rgqld@iinet.net.au> - 2012-02-12 18:57 -0800
csiph-web