- From: Martin Thomson via GitHub <sysbot+gh@w3.org>
- Date: Wed, 19 Feb 2025 03:48:42 +0000
- To: public-i18n-archive@w3.org
My suggestion: Use DOMString when interacting with Web APIs, unless the specific API explicitly uses USVString. DOMString can be more efficient for Web APIs, so using DOMString might help avoid unnecessary conversions. Use USVString otherwise. Avoid mixing DOMString and USVString, which could end up causing wasteful conversion between the two types. Use ByteString (or isomorphic strings) as little as possible. ByteString is only used in a few places where strings will require special effort to represent characters outside of the ASCII range. Convert strings to Uint8Array using UTF-8 when you need to send strings to other places. -- GitHub Notification of comment by martinthomson Please view or discuss this issue at https://github.com/w3c/bp-i18n-specdev/issues/152#issuecomment-2667442923 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 19 February 2025 03:48:43 UTC