Closure capture loop variables

via Digitalmars-d digitalmars-d at puremagic.com
Sat May 2 09:50:32 PDT 2015


On Saturday, 2 May 2015 at 03:35:17 UTC, ketmar wrote:
> if js doing something, big chances are that it's wrong. Brendan 
> failed
> his Scheme classes, especially those where he was taught about 
> closures.

Here's another fun thing about javascript:

a = new Number(1);
b = new Number(1);
a<=b; // true
a>=b; // true
a+b == b+a; // true

a==b; // false !

Good luck finding this bug in your codebase... Implicit type 
conversion, blargh.


More information about the Digitalmars-d mailing list