Yet another way to invoke functions without parentheses(blog.ikaes.de) |
Yet another way to invoke functions without parentheses(blog.ikaes.de) |
> We stopped when we got a clean compile on the following syntax:
for(;P("\n"),R--;P("|"))for(e=C;e--;P("_"+(*u++/8)%2))P("| "+(*u/4)%2);‘Larry, throw the cat at the keyboard!’
MEEEOW!
‘What did it type?’
‘&}Ak'>v=4%Qe}9;’
‘OK, so let’s make this a syntax for hello world.’
I haven't seen it in many many years, but at the time it struck my giggle button every time.
Bareword found where operator expected (Missing operator before "Ak"?) at -e line 1, near "&}Ak" Bad name after Ak' at -e line 1.
(((x)f)g)h
So I can see exactly the order in which things happen, from left to right.
As opposed to: f(g(h(x)))
where I have to read backwards.since the order in which things happen is "h first, then g, then f"
That will also serves as a litmus test to check how many of my coworkers are reading the code they push.
“Back in my days…”
“No true Scotsman…”
“I remember when…”
“Kids these days…”
Gotta love this self-aggrandising humble-brag nonsensical stuff.
aka "Chrome implemented this and wanted everyone else to do so as well"
Object.prototype.message='alert\x281337\x29';Array.prototype.toString=Error.prototype.toString;Error.prepareStackTrace = Function;const x = new Error;x.valueOf=x.stack;+x;
Well, that's a mouthful! So many years and JavaScript still can do the most amazing, weird, awesome, scary, obscure, and sexy things in the world of coding. (function () {/*
my awesome shader code
*/}).toString().match(/[^]*\/\*([^]*)\*\/\}$/)[1]
... I can't call it sexy, but I also can't deny I felt a mixture of fear and arousal when I saw that. (x=>/*this is a comment*/1) + 1
"x=>/*this is a comment*/11"
I wonder if anything cool can be done with it today. It's probably useless.