C++ Logo

std-proposals

Advanced search

Re: [std-proposals] D4039R0 Sequential hexadecimal digits

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Sat, 28 Feb 2026 20:45:58 +0000
On Sat, 28 Feb 2026 at 20:31, Halalaluyafail3 <luigighiron_at_[hidden]> wrote:

> On Sat, Feb 28, 2026 at 3:04 PM Jan Schultke <janschultke_at_[hidden]>
> wrote:
> >
> >
> >> The wording in your draft could be misinterpreted to mean that
> 0123456789ABCDEFabcdef is a single contiguous range.
> >
> >
> > The wording says "The code unit values of characters in the ranges ...".
> Emphasis on "ranges" being plural.
> >
> > How can someone interpret it to mean that the range (singular)
> 0123456789ABCDEFabcdef is contiguous?
>
> It could be read as referring to all three ranges collectively, and then
> saying
> all characters in all of those three ranges need to be contiguous and in
> the
> order of their assigned Unicode code points. I think that adding "each" to
> the
> text before "contiguous" would help clarify it.
>

Right, that's exactly my concern.

It didn't say they form three contiguous subranges, it said they are
contiguous. Not contiguous within their own range, just contiguous.

The new wording is better, but C makes it even clearer by saying the
characters 0..9 are contiguous, and the characters A..F are contiguous, and
the characters a..f are contiguous. I think being clear and unambiguous is
more important than trying to compress the spec into a single sentence.

Received on 2026-02-28 20:46:17