News for hackers. Stuff that matters.
Re:What it feels like when Rust saves your bacon by dgb23 on Friday June 24, 2022 @07:18AM (#31860137)
I skimmed the code and there are a ton of language features in there that you might not be super familiar with:

- pattern matching is quite expressive and ubiquitous in Rust, as in "stuff on the left" is almost always a pattern even in places that you might not expect at first

- lifetime annotations, a form of generics, are quite unique and make the code more verbose/noisy if you are not familiar with them

- Rust is expression based (a bit lispy) so you might not quite see the flow of the program as well if you are used to statement based syntax

- traits are are an important part of the language and some of the methods and method chains you see there might look arbitrary, but many of them are very common. A more experienced reader can identify many of them and see the code very differently.

- there is no syntax highlighting on the article's snippets so you already have to know how to parse them

There are no comments on this comment yet.