News for hackers. Stuff that matters.
Re:Generics enabled by default in Go tip by anothernewdude on Saturday August 21, 2021 @02:41AM (#28254810)
No generics, and lack of error handling are why I bounced off Go.

Can I write a generic data structure? No. You have to cast from interface{}.

Java 1.4.2 is dead, and rightly so.

And manual error checking? No. Get that garbage out of my control flow. I'm not going to a language that has worse error handling than C. At least in C you can factor it out.

Re:Generics enabled by default in Go tip by Gibbon1 on Saturday August 21, 2021 @03:22AM (#28254973)
Writing stuff in C... one thing I would like is an error return keyword. And the ability to set how you'd like unhanded errors to be dealt with. Like unhanded error means program aborts. Let the programmer decide how sloppy he wants to be.