r/ProgrammingLanguages • • Mar 01 '20

What's your favorite programming language? Why?

What's your favorite programming language? Why?

146 Upvotes

237 comments sorted by

View all comments

Show parent comments

14

u/[deleted] Mar 02 '20

I can’t tell if this is sarcasm or not. If it isn’t, why don’t you like generics?

7

u/elliottcable Mar 02 '20

Any sufficiently advanced … 🤣

0

u/[deleted] Mar 02 '20

[deleted]

6

u/SV-97 Mar 02 '20

Right? I too prefer the C style of generics: using void* for everything and casting if necessary.

2

u/Comrade_Comski Mar 03 '20

So you prefer Canadian aboriginal syllabics?

2

u/ryeguy Mar 03 '20

So which do you prefer instead? Losing type safety, documentation, and performance by using interface {}? Or copying and pasting methods with different signatures?

Because Go does nothing to sidestep the actual need for generics, it just leaves it to the user to come up with some ad-hoc solution.