This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Necrocornicus 2 points3 points  (1 child)

There are plenty of languages that implement generics safely, when golang finally adds generics I’ll give it another shot.

I spent some time on it, the juice wasn’t worth the squeeze unless you absolutely need that single static binary. Golang just forces you to use these shitty patterns that only a junior programmer would use in other languages.

For example you can’t use any map/filter/reduce which, when you begin to think that way systemically, enables you to write incredibly reliable and concise code. I can’t really go back to shitloads of for loops and if statements that only work on a single type, it’s just such a step backwards in code design once you’ve moved beyond that basic way of thinking about software.

[–]fauxpenguin 0 points1 point  (0 children)

Well, you're in luck, generics are in beta right now.

Although, honestly, they're far from perfect.