News for hackers. Stuff that matters.
Re:My favorite Rust function by nicoburns on Saturday October 12, 2019 @08:10PM (#21237280)
Go code feels very low-level to me, and very boilerplatey. In Rust I can write code that in almost the same way I write JavaScript (but with added type annotations), but Go makes me deal with all the little details, and makes it hard to abstract things neatly.

Lack of generics is a big part of the issue. But more generally the focus on "simple" code means that more sophisticated abstractions are actively eschewed, and personally I find this makes writing Go code quite frustrating.

Re:My favorite Rust function by The_rationalist on Saturday October 12, 2019 @08:39PM (#21237401)
Your comment is weird. The one making you deal with the little details should be rust, e.g go is garbage collected. Secondly, javascript + type annotations is typescript.
Re:My favorite Rust function by Gaelan on Saturday October 12, 2019 @08:53PM (#21237478)
Disclaimer: I’ve never tried to write Go.

Memory management is not the only type of “little detail.” For instance, rust provides common collection operations (filer, map, find…) in the standard library. In go (AFIAK), you need to hand-write a loop for each. IMO, the rust version is takes much less mental bandwidth to write and understand.

Re:My favorite Rust function by The_rationalist on Saturday October 12, 2019 @09:14PM (#21237571)
rust provides common collection operations (filer, map, find…) Those are just standard functional methods available in most languages. Go indeed is noteworthy for it's lack of features.
Re:My favorite Rust function by Gaelan on Saturday October 12, 2019 @09:59PM (#21237786)
Yes, of course. I just described it as a Rust feature because that was the comparison being made in the thread.