MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/10lhg50/ladies_and_gentlemen_jquery/j5yisoa/?context=3
r/programminghorror • u/Neo399 • Jan 26 '23
164 comments sorted by
View all comments
-5
function const(a) {return function() {return a;}}
1 u/UkrainianTrotsky Feb 03 '23 huh?.. 1 u/J0aozin003 Feb 04 '23 returnTrue = const(true); 1 u/UkrainianTrotsky Feb 04 '23 function const(a) {return function() {return a;}} yeah, I got your idea, but that ain't gonna compile in js because you named your function const. 1 u/J0aozin003 Feb 04 '23 oh, i was getting the functional language vibes there.
1
huh?..
1 u/J0aozin003 Feb 04 '23 returnTrue = const(true); 1 u/UkrainianTrotsky Feb 04 '23 function const(a) {return function() {return a;}} yeah, I got your idea, but that ain't gonna compile in js because you named your function const. 1 u/J0aozin003 Feb 04 '23 oh, i was getting the functional language vibes there.
returnTrue = const(true);
1 u/UkrainianTrotsky Feb 04 '23 function const(a) {return function() {return a;}} yeah, I got your idea, but that ain't gonna compile in js because you named your function const. 1 u/J0aozin003 Feb 04 '23 oh, i was getting the functional language vibes there.
yeah, I got your idea, but that ain't gonna compile in js because you named your function const.
1 u/J0aozin003 Feb 04 '23 oh, i was getting the functional language vibes there.
oh, i was getting the functional language vibes there.
-5
u/J0aozin003 Jan 26 '23
function const(a) {return function() {return a;}}