3 ms·
Wrong and you know it. Go does not have generics so you have to use void* (interface{}) and casting. It ends up being about an order of magnitude uglier and m
by TresAmiga 14y ago
Wrong and you know it. Go does not have generics so you have to use void* (interface{}) and casting. It ends up being about an order of magnitude uglier and more verbose. Which is why map, fold, etc don't exist in Go.
You go fanatics are incorrigible.
- drivebyacct2 14y agoSeriously? Is this just a coincidence that another throwaway named "TakeTwo" and then "TresAmiga" are both making throw aways and dismissing all Go users? Jesus. What he's describing is far more than possible using interfaces. I have plenty of code that does so. How is that "wrong and he knows it". Your worse than any Go fan here. Where the hell does someone get off being vitriolic about a language or someone's preference for that language. Pathetic, at least have the balls to post under your real account. That having been said, as an "incorrigible Go fan", I would love to see proper generics. It's something I'm enjoying in Rust. It's also something that everyone is open to adding in Go 2, so it doesn't necessarily have to be a permanent absence from Go.
- jbooth 14y agoThere's some idiots who troll the #golang-nuts freenode channel occasionally with a bunch of spam saying 'node is way better!'. I assume they're not gainfully employed, or else they would understand that the two languages/platforms have very different goals and principles.
- drivebyacct2 14y ago`chord`? Yeah, I was in there and was one of the people feeding him/her, I'm ashamed to say. I'd had a few beers and wasn't on my best behavior. Chord was on about "Rails" is better, couldn't fathom a web world without MVC and failed to understand that Rails was just a framework on Ruby and that one could write similar helpers in Go. It was the perfect example of Dunning-Kruger. Painful to witness.
- jlgreco 14y agoI think there is honestly something wrong with that guy in a mild "losethos" sort of way. He started spamming me trollish nonsense in PMs because I dared utter a single line while he was active. Something about golang just seems to attract a certain flavor of nutters.
- drivebyacct2 14y agoHe stalked me too. Mocked my parents, my sexuality (lolironic), my job, etc. Classy fella.
- paddyforan 14y agoI'm starting to feel so left out. Why do crazy Go-haters never harass me? Am I not good enough?
- TresAmiga 14y ago"It was the perfect example of Dunning-Kruger." You guys are hanging out on IRC making fun of people that are 'stupider' than you, attack the messenger instead of the message, while you post a non-generic function to fool unsuspecting readers into thinking Go can do map in a way comparable to OP's example. Look in the mirror much?
- TresAmiga 14y ago"What he's describing is far more than possible using interfaces. I have plenty of code that does so." I did not say it was impossible, I said it was ugly and really verbose, which it is. If you think different how about actually posting the code and an example of generic map being used so everybody can see how 'wrong' I am.