TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Rust vs. C++ Formatting

163 点作者 vitaut超过 2 年前

3 条评论

spoiler超过 2 年前
In the vector example, why not just `collect&lt;...&gt;()` and debug print that, or am I missing the point of what they tried to illustrate?<p>Also, I do agree that C++&#x27;s approach to formatting the date was more user friendly&#x2F;ergonomic, but on the other hand it&#x27;s not something I&#x27;ve struggled with. I also feel like there is a more succinct version (I don&#x27;t know if it would have the same performance characteristics and how much that mattered when writing the post).<p>They also later mentioned overall consistency and coherence in the Rust ecosystem, and I value that more over a couple of hand crafted formatters in application code
评论 #34407634 未加载
ridiculous_fish超过 2 年前
How do Rust projects localize their format strings?
评论 #34407474 未加载
评论 #34407808 未加载
评论 #34407433 未加载
评论 #34410396 未加载
mr_00ff00超过 2 年前
Finally, after 40 years technology has advanced far enough for C++ to have a print function instead of cout
评论 #34399476 未加载
评论 #34405332 未加载
评论 #34406339 未加载
评论 #34406757 未加载
评论 #34410905 未加载
评论 #34406687 未加载
评论 #34402377 未加载
评论 #34406811 未加载
评论 #34406074 未加载
评论 #34402369 未加载