Re: Style proposal: char32_t for Unicode scalar values

2018-03-28 Thread Henri Sivonen
On Tue, Mar 27, 2018 at 12:43 AM, Boris Zbarsky wrote: > On 3/26/18 1:48 AM, Henri Sivonen wrote: >> >> Rationale: Say what you mean when the language has vocabulary to do so. > > Amen. I'd be happy with char32_t for scalar values. Thanks. I added an item about char32_t to the Coding Style doc.

Re: Style proposal: char32_t for Unicode scalar values

2018-03-27 Thread Boris Zbarsky
On 3/26/18 1:48 AM, Henri Sivonen wrote: Rationale: Say what you mean when the language has vocabulary to do so. Amen. I'd be happy with char32_t for scalar values. -Boris ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mo

Style proposal: char32_t for Unicode scalar values

2018-03-26 Thread Henri Sivonen
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 meth