daily wtf
I saw this snippet on the daily wtf:
if b = b then b = true end if
…and thought – how would I write that in JavaScript, if I wanted to keep the spirit of the thing, and add a little more “wtf” to it. Here y’are:
b=b==b?b==b:b;
It has a strange symmetry, dont you think?
Dude, this carries it too far. To the point of being lame. 😀
thank you!
I realised as well, that you could place a semi-colon at the beginning of the line, to make it more truly symmetrical:
;b=b==b?b==b:b;