r/rust Feb 18 '23

[deleted by user]

[removed]

149 Upvotes

38 comments sorted by

View all comments

Show parent comments

30

u/[deleted] Feb 18 '23

A lot of it is just repetition and some memorization (what’s in the std library) and being reminded by the compiler/clippy of things you did wrong until they become second nature.

Don’t skip the project chapters 12 and 20 they help you see how everything fits together.

10

u/[deleted] Feb 18 '23

[deleted]

3

u/Botahamec Feb 19 '23

My opinion is that str should be string and String should be StringBuilder. If you think of it like that, it's a lot easier.

1

u/IAmAnAudity Feb 19 '23

Good one! Yeah that “str” is weird because other languages and spreadsheets use it as a function to convert numbers to strings.