Live data from Hacker News

Idiomatic Rust

a-i-nstein.neocities.org

11–20 of 45 posts

Re: Idiomatic Rust

#13

only 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

This is why AI answers suck, lot of bad advice on the internet.

Re: Idiomatic Rust

#14
Don't be let down by other comments. The topic itself something I think people would more enjoy when it is more comprehensive. Add more content with your findings, refine and then post again on HN

Re: Idiomatic Rust

#15
post #5

Personally, 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?

Yeah, I clicked the "Show me" half expecting a popup asking to subscribe to a newsletter for "updates" on more parts.

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

#16
The "Effective Rust" book was recently published and can be read online, for free [1].

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

[1] https://www.lurklurk.org/effective-rust/

Re: Idiomatic Rust

#17
post #9

very low effort, I expected more high quality content from HN front page

Maybe I’m missing something because the mobile version is unreadable, but it’s basically one short page with like 3 sections of how to work with ints??

Re: Idiomatic Rust

#19
post #11

Is x = 57u8 actually idiomatic when compared to x: u8 = 57? I don't remember any Rust resource using that.

It's not only not really idiomatic, it's almost never necessary in practice.

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.

Post reply on HN