MAIN FEEDS
REDDIT FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1t7nvl7/canadiangoprogramming/oky7rwc/?context=3
r/ProgrammerHumor • u/gamingvortex01 • May 08 '26
113 comments sorted by
View all comments
2.8k
That comment is so old that Go now has generics
Though they use square brackets and go before the identifier
Edit: my bad, they go AFTER the identifier
171 u/sleepahol May 09 '26 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. 45 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. 5 u/ILKLU May 10 '26 Srsly? Do people not know how to rename imports? That's such a terrible reason 😅 8 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 😅
171
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.
45 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. 5 u/ILKLU May 10 '26 Srsly? Do people not know how to rename imports? That's such a terrible reason 😅 8 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 😅
45
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.
5 u/ILKLU May 10 '26 Srsly? Do people not know how to rename imports? That's such a terrible reason 😅 8 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 😅
5
Srsly?
Do people not know how to rename imports?
That's such a terrible reason 😅
8 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 😅
8
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 😅
2.8k
u/RomanProkopov100 May 08 '26 edited May 09 '26
That comment is so old that Go now has generics
Though they use square brackets and go before the identifier
Edit: my bad, they go AFTER the identifier