i just think JSLint isn't for everyone. i had been using it with greater or lesser enthusiasm for years until, after watching the video of douglas' talk at...
2993
benquarmby
Sep 2, 2012 10:31 pm
Hey Tom, That TXJS11 talk was great wasn't it! http://vimeo.com/25606006 If you can switch off the emotional side of your brain, the logic is very hard to...
2994
Felix E. Klee
feklee
Sep 7, 2012 10:45 am
That code gives a strict violation (due to presence of `this`): function f() { 'use strict'; return this.x; } That code doesn't: var f = function () { 'use...
2995
Tom Worster
thefsb
Sep 7, 2012 11:22 am
this is just JSLint saving you time in detecting an ES5 strict mode error see http://is.gd/WCXyRm...
2996
thomastraub2000
Sep 7, 2012 3:56 pm
Hi, I have a module which toggles two group of event handlers : // structure (function () { "use strict"; function a() {} function b() {} function c() {b(c);...
2997
Felix E. Klee
feklee
Sep 7, 2012 4:45 pm
(function () { "use strict"; var d; function a() {} function b() {} function c() { b(c); a(d); } d = function () { b(a); a(c); }; c(); d(); }());...
2998
Mike On Mobile
z_mikowski
Sep 7, 2012 5:14 pm
Assign your functions to variables. Declare your variables at the top of your script. ... [Non-text portions of this message have been removed]...
2999
thomastraub2000
Sep 7, 2012 6:21 pm
Thanks, I should have thought of that...
3000
thomastraub2000
Sep 7, 2012 6:21 pm
Thanks, I should have thought of that...
3001
Marcel Duran
marcelduran
Sep 7, 2012 6:37 pm
(function () { "use strict"; var a, b, c, d; a = function () {}; b = function () {}; c = function () {b(c); a(d); }; d = function () {b(a); a(c); }; c(); d(); ...
3002
thomastraub2000
Sep 8, 2012 11:36 am
Thanks, it's just that I liked my notation so much that I did not want to remember how it can be done....
3003
douglascrockford
douglascrock...
Sep 11, 2012 6:13 pm
Erik Meijer talking about the hazards and other interesting things. http://channel9.msdn.com/posts/Erik-Meijer-Functional-Programming-From-First-Principles...
3004
chrisprice0101010
chrisprice01...
Sep 17, 2012 1:55 pm
Whilst reviewing some code, I spotted an unnecessary use of call and it stood out to me as a good candidate for a warning. The following code demonstrates the...
3005
Josh Jordan
therealjoshj...
Sep 18, 2012 11:41 am
I expect jslint to accept the following two-line code snippet, but instead it gives the error "Unexpected '['". What am I doing wrong? ===JSLINT INPUT=== var a...
3006
Jakob Kruse
thekrucible
Sep 18, 2012 11:46 am
Might I suggest that you try rewriting your code so that when read, it makes sense. Maybe then JSLint will stop complaining? /Jakob _____ From: Josh Jordan...
3007
Luke Page
page.luke...
Sep 18, 2012 12:00 pm
b = +a[0]; b = Number(a[0]); OR b = a[0]; ... [Non-text portions of this message have been removed]...
3008
douglascrockford
douglascrock...
Sep 18, 2012 2:21 pm
... I continue to be amazed at the terrible code that people want to write. ... Please try it now. And thank you for thoughtfully providing the cases....
3009
Chris Price
chrisprice01...
Sep 18, 2012 2:40 pm
Works great, thanks! ... [Non-text portions of this message have been removed]...
... People who are using the expression form are more likely to know what they are doing....
3013
Tom Worster
thefsb
Sep 20, 2012 12:34 am
... (i'm an incompetent but) i see it as analogous to the difference between: f = and var f = i the latter, function f is clearly within the scope of the...
3014
Emmett Pickerel
emmett.thesane
Sep 20, 2012 2:52 am
The function statement is evaluated at the top of the current scope, regardless of physical location. The function expression is evaluated at the same time as...
3015
Felix E. Klee
feklee
Sep 20, 2012 8:00 am
On Thu, Sep 20, 2012 at 4:52 AM, Emmett Pickerel ... I am aware of that. However, that's not what the error message is about. ... Like what?...
3016
Doc Emmett Splendid
emmett.thesane
Sep 20, 2012 10:05 pm
Sorry, that was a typo. I meant to say "there are other things you cannot do with the function *statement*". As for the error, to elaborate on what Douglas...
3017
Martin Cooper
mfncooper
Sep 21, 2012 3:34 am
On Mr Crockford's Remedial JavaScript page: http://javascript.crockford.com/remedial.html near the bottom, there is a little function called 'supplant39; that ...
3018
Felix E. Klee
feklee
Sep 21, 2012 8:24 am
On Fri, Sep 21, 2012 at 4:33 AM, Martin Cooper <mfncooper@...> ... Escaping `{` and `}` (`\{`, `\}`) doesn't do the trick?...
3019
Felix E. Klee
feklee
Sep 21, 2012 8:34 am
On Fri, Sep 21, 2012 at 12:05 AM, Doc Emmett Splendid ... To my knowledge, `function f` is just a shortcut for `var f = function`. I am unaware of any...
3020
John Hawkinson
john.hawkinson
Sep 21, 2012 8:40 am
... The former is hoisted. --jhawk@... John Hawkinson...
3021
Felix E. Klee
feklee
Sep 21, 2012 8:50 am
On Fri, Sep 21, 2012 at 10:33 AM, Felix E. Klee <felix.klee@...> ... Aside from the difference you mentioned earlier, of course: "The function statement is...