News for hackers. Stuff that matters.
Re:Less is exponentially more (2012) by acarl005 on Tuesday May 12, 2020 @11:23AM (#23154946)
Whenever the topic of generics comes up, especially in Go, things seem to devolve into a ragefest about inheritance and OOP. Why? I don't want the mess of inheritance any more than the next chap. I just want generics for algebraic types—a single definition for a List, Set, Map. I wish the error-handling looked more like Rust's Result type instead of the double-return idiom. Algebraic types alone (without inheritance) make things an order of magnitude more expressive.
Re:Less is exponentially more (2012) by ansible on Tuesday May 12, 2020 @11:49AM (#23155328)
> I wish the error-handling looked more like Rust's Result type instead of the double-return idiom.

After this and a few other issues I had with Go's design, I just started learning Rust. Though I hear good things about Swift these days, hopefully they will provide full support for all popular platforms in the future.

Re:Less is exponentially more (2012) by tonyedgecombe on Tuesday May 12, 2020 @12:28PM (#23155891)
Swift is nice but I don't see it making much sense outside of the Apple ecosystem.
Re:Less is exponentially more (2012) by winrid on Tuesday May 12, 2020 @01:13PM (#23156539)
It's a wonderful language. I'd love to work with it server side it I found said job.