News for hackers. Stuff that matters.
Re:The Next Step for Generics by fooster on Tuesday June 16, 2020 @08:38PM (#23546245)
This is such a bullshit argument. Why is it that any go post on hacker news pulls out all the tropes. Lack of exceptions. Lack of generics. Would generics make go a better a language? Maybe. Does the lack of generics make go objectively bad? Hell no!

I've had a long career coding in C, C++, Java, Lisp, Python, Ruby... you name it I've done it. Go is my favorite most productive language by far for solving typical backend issues. My least favorite? Java by a HUGE mile.

Re:The Next Step for Generics by twblalock on Tuesday June 16, 2020 @09:50PM (#23546803)
> Why is it that any go post on hacker news pulls out all the tropes. Lack of exceptions. Lack of generics.

It's pretty simple -- those of us who use those feature regularly in other languages know how valuable they are, and we miss them when they aren't there.

Re:The Next Step for Generics by cies on Wednesday June 17, 2020 @02:45AM (#23548498)
> Lack of exceptions

Is that really a problem? I think proper sum types to allow Result types that can encode many success/error states are so much nicer than an exception hierarchy. Rust and Kotlin did not go with exceptions, and for good reasons.

> C, C++, Java, Lisp, Python, Ruby... you name it I've done it.

Let me name a few: Rust, Kotlin, OCaml/Reason, Haskell, Elm. These languages carefully selected a set of features, the all have: no implicit nulls and sum types. And in your list non of them have those features. I really wonder what you think of these features when you've worked with them.

Re:The Next Step for Generics by aa66tt55rr44 on Wednesday June 17, 2020 @08:59AM (#23550815)
> Kotlin

Kotlin very much did go with exceptions except for the Result type in coroutines which wraps a Throwable anyway and is only used for the border between the coroutine runner and the async functions.

Re:The Next Step for Generics by dcgudeman on Tuesday June 16, 2020 @11:45PM (#23547525)
Why do you dislike java so much?