Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
A string containing one emoji has length == 7 in JS and 17 in Rust (hsivonen.fi)
4 points by ozornin on Dec 30, 2024 | hide | past | favorite | 3 comments


It seems that on HN " ".length == 1 as the emoji has been replaced with a space.


true. fixed the title


It's ironically appropriate. Not sure if it's a [bug emoji] or a stylistic choice to not allow emoji on HN, but it does illustrate how variable handling of emoji can be.




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

Search: