book icon indicating copy to clipboard operation
book copied to clipboard

Inline all format arguments

Open nyurik opened this issue 3 years ago • 4 comments

The inlined format arguments are a bit easier to understand, especially for those familiar with the other languages (python, js).

To avoid any panic!("{foo}") issues, migrated to 2021 edition

nyurik avatar Oct 13 '22 19:10 nyurik

@carols10cents hi, is there anything additional i should do on this pr?

nyurik avatar Mar 28 '23 00:03 nyurik

@carols10cents a friendly ping :) Anything I can do to help? Thx!

nyurik avatar Apr 17 '23 17:04 nyurik

No, please do not ping me. I have limited time to spend on the book, and I will get to this when I get to it.

carols10cents avatar Apr 17 '23 23:04 carols10cents

@nyurik thanks for doing this work!

As a newcomer to Rust, reading the (excellent) book, I had assumed the lang didn't support this inline syntax for some reason. After some googling about why not, I found the RFC and discovered it was supported. I think this PR adds clarity to the text, and gives newbies a better sense of Rust's ergonomics.

jxjj avatar May 08 '23 02:05 jxjj

Thanks @chriskrycho !!

nyurik avatar Apr 19 '24 18:04 nyurik