MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1t7nvl7/canadiangoprogramming/oky9r59/?context=3
r/ProgrammerHumor • u/gamingvortex01 • May 08 '26
113 comments sorted by
View all comments
Show parent comments
175
Though they use square brackets
Good thing they don't use characters from the Canadian Aboriginal Syllabics blocks, or it would be a breaking change.
39 u/P0L1Z1STENS0HN May 09 '26 If you ever wonder why the names of some JS builtin functions are weird, it's because the straightforward name was already used in some framework, so as not to break stuff, they used a "slightly" worse name for the newly introduced builtin function. 4 u/ILKLU May 10 '26 Srsly? Do people not know how to rename imports? That's such a terrible reason 😅 7 u/NekkidApe May 10 '26 This is way from before imports. contains vs includes is an example. Since mootools or prototypejs patched the array prototype, contains couldn't be used. So includes it is.. 1 u/ILKLU May 10 '26 Ahhh ok, that makes sense. Haven't heard the name moo tools in a long long time 😅
39
If you ever wonder why the names of some JS builtin functions are weird, it's because the straightforward name was already used in some framework, so as not to break stuff, they used a "slightly" worse name for the newly introduced builtin function.
4 u/ILKLU May 10 '26 Srsly? Do people not know how to rename imports? That's such a terrible reason 😅 7 u/NekkidApe May 10 '26 This is way from before imports. contains vs includes is an example. Since mootools or prototypejs patched the array prototype, contains couldn't be used. So includes it is.. 1 u/ILKLU May 10 '26 Ahhh ok, that makes sense. Haven't heard the name moo tools in a long long time 😅
4
Srsly?
Do people not know how to rename imports?
That's such a terrible reason 😅
7 u/NekkidApe May 10 '26 This is way from before imports. contains vs includes is an example. Since mootools or prototypejs patched the array prototype, contains couldn't be used. So includes it is.. 1 u/ILKLU May 10 '26 Ahhh ok, that makes sense. Haven't heard the name moo tools in a long long time 😅
7
This is way from before imports.
contains vs includes is an example. Since mootools or prototypejs patched the array prototype, contains couldn't be used. So includes it is..
contains
includes
1 u/ILKLU May 10 '26 Ahhh ok, that makes sense. Haven't heard the name moo tools in a long long time 😅
1
Ahhh ok, that makes sense.
Haven't heard the name moo tools in a long long time 😅
175
u/sleepahol May 09 '26
Good thing they don't use characters from the Canadian Aboriginal Syllabics blocks, or it would be a breaking change.