Idiomatic Rust
11–20 of 45 posts
Re: Idiomatic Rust
#12Re: Idiomatic Rust
#13only one part. applies to zero of the rust code i write. formats horrendously on mobile. you gotta work on this more before putting it on hacker news
Re: Idiomatic Rust
#14Re: Idiomatic Rust
#15Personally, I'd prefer to see a table of content and jump through it than being taken through it like a little story. Is there anything more than part 1?
OP, this is just feedback and I hope that you'll continue documenting your rust journey even if it's just for yourself.
Re: Idiomatic Rust
#16I'd go as far and say that all of it is, by definition, idiomatic.
I guess I'm saying, you could reasonably change the book's title to "Idiomatic Rust".
I'd read that first and then look into what bits it doesn't cover. That could be worth a blog like the one this is about.
Re: Idiomatic Rust
#17very low effort, I expected more high quality content from HN front page
Re: Idiomatic Rust
#18Is x = 57u8 actually idiomatic when compared to x: u8 = 57? I don't remember any Rust resource using that.
Re: Idiomatic Rust
#19Is x = 57u8 actually idiomatic when compared to x: u8 = 57? I don't remember any Rust resource using that.
I was struggling to think of a time I'd ever given a type annotation to an integer local variable - because normally the place the variable ends up dictates the type.
Local variable becomes part of struct? Struct dictates type. Passed into function? Function dictates type. Multiplied by other variable and then that is passed to function? The type is determined by the function.
Re: Idiomatic Rust
#20Is x = 57u8 actually idiomatic when compared to x: u8 = 57? I don't remember any Rust resource using that.