logoalt Hacker News

jdw64today at 12:58 AM0 repliesview on HN

Thank you. I hope I didn't offend you. First, I think the len() part is problematic. Could you check that for me? I think it's calling Rust's str::len() and using JS's String.length, which I think should be aligned with UTF-8.

I'll try it out next time and give feedback later. And you're right, it's just a difference of opinion.

Also, for the API side, Unicode strings are usually 4 kinds right? I think using Rust-style snake_case, we might need separate functions like len(), utf16_len(), and so on. But I'm not sure how to handle the abstraction between libraries and browsers.

Sorry for being critical. I'm not that good of a programmer, so it might be a mistaken observation. Please check it.