MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xpd5m4/iloveconst/
r/ProgrammerHumor • u/One-Celebration-3007 • 20d ago
8 comments sorted by
20
My favorite part of constants is how dynamic they are
12
This looks like JS to me, to my knowledge, a `const` won't work here and should throw a `TypeError`. It would only work in a for...in or a for...of loop.
Am I missing a joke?
6
that's a type error.
2
Yes of course, let's modify. Nothing will go wrong right?
int, const, what's the difference?
-5 u/[deleted] 20d ago [removed] — view removed comment 5 u/NatoBoram 20d ago Bot
-5
[removed] — view removed comment
5 u/NatoBoram 20d ago Bot
5
Bot
where humor
20
u/Enough-Scientist1904 20d ago
My favorite part of constants is how dynamic they are
12
u/fuj1n 20d ago
This looks like JS to me, to my knowledge, a `const` won't work here and should throw a `TypeError`. It would only work in a for...in or a for...of loop.
Am I missing a joke?
6
u/-Redstoneboi- 20d ago
that's a type error.
2
u/Later1842 20d ago
Yes of course, let's modify. Nothing will go wrong right?
2
u/Bemteb 20d ago
int, const, what's the difference?
2
u/Makonede 20d ago
where humor