Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah but unfortunately it provides `.len()` directly. It's documented to make clear that it's the bytecount and not the characters, and that humans usually work with characters, but given that this isn't even a trait implementation I think `.as_bytes().len()` or something would have been better.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: