Considering that C++11 has a type for a Unicode scalar value and
considering that our compilers support C++11, I suggest we adopt a C++
code style guideline that we should use char32_t (as opposed to
uint32_t) to represent a single Unicode scalar value as the argument
type or return value of a method.

Rationale: Say what you mean when the language has vocabulary to do so.

Note: I'm not advocating for UTF-32 strings, i.e. having a buffer of
multiple char32_t values. UTF-32 string are, in my opinion, a design
bug, and I want to get rid of the existing cases of UTF-32 strings in
our codebase.

-- 
Henri Sivonen
hsivo...@hsivonen.fi
https://hsivonen.fi/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to