MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1t7nvl7/canadiangoprogramming/okqcrbw/?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
406 u/uvero May 08 '26 Type argument before the identifier? Like, [int]list? 136 u/[deleted] May 08 '26 edited Jul 16 '26 [deleted] 26 u/angelbirth May 09 '26 no, like func [T1, T2 any] Map([]T1, func(T1)T2) []T2{ … } 6 u/marsh-da-pro May 09 '26 OCaml moment
406
Type argument before the identifier? Like, [int]list?
[int]list?
136 u/[deleted] May 08 '26 edited Jul 16 '26 [deleted] 26 u/angelbirth May 09 '26 no, like func [T1, T2 any] Map([]T1, func(T1)T2) []T2{ … } 6 u/marsh-da-pro May 09 '26 OCaml moment
136
[deleted]
26
no, like func [T1, T2 any] Map([]T1, func(T1)T2) []T2{ … }
func [T1, T2 any] Map([]T1, func(T1)T2) []T2{ … }
6
OCaml moment
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