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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Rust: You probably meant to use .chars().count()

4 点作者 sargas大约 9 年前

1 comment

lokedhs大约 9 年前
Why is that what is meant? I am struggling to think of a situation where the number of characters is actually needed.<p>What you get from this call is the number of Unicode code points, which doesn&#x27;t reflect the number of &quot;characters&quot; using any common definition at all.<p>I&#x27;m concerned that misinformed advice like this will lead to even more broken implementations of things like line breaking.
评论 #11504946 未加载