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.
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.
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.