TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
Rust 1.58.0
101 points
by
0xedb
over 3 years ago
5 comments
c0balt
over 3 years ago
Collapse
Being able to use formatting patterns similar to python sounds really awesome. It makes formatting with long formatting strings really a lot more expressive and more readable.
评论 #29927628 未加载
edflsafoiewq
over 3 years ago
Collapse
> Format strings can only capture plain identifiers, not arbitrary paths or expressions.<p>Why?
评论 #29925792 未加载
评论 #29926244 未加载
hajile
over 3 years ago
Collapse
This is a nice step.<p>Now they should allow expressions in addition to just names and apply it to all string literals.
评论 #29925609 未加载
pjmlp
over 3 years ago
Nice work! Looks like I have some code updates to do.
Shadonototra
over 3 years ago
Collapse
index or format specs are ok, but capturing variables is a bad idea, visually bloats the string, it becomes unreadable
评论 #29930539 未加载