220 29344 <3804442.N9iLZUPZCD@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: std::byte thoughts
Date: Wed, 02 Nov 2016 07:10:51 -0700
Lines: 40
Approved: news@gmane.org
Message-ID: <3804442.N9iLZUPZCD@tjmaciei-mobl1>
References: <7da80620-e4bd-40eb-a4ec-4f3c2dcb2c98@isocpp.org> <2128372.NTAZafObDQ@tjmaciei-mobl1> <2145466f-4680-4489-8728-258fd4374aff@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1478095886 15655 195.159.176.226 (2 Nov 2016 14:11:26 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 2 Nov 2016 14:11:26 +0000 (UTC)
User-Agent: KMail/5.3.2 (Linux/4.8.4-1-default; KDE/5.27.0; x86_64; ; )
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRB3XH47AAKGQE57GJPVA@isocpp.org Wed Nov 02 15:11:19 2016
Return-path: <std-proposals+bncBCB4TK757YBRB3XH47AAKGQE57GJPVA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f72.google.com ([74.125.82.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRB3XH47AAKGQE57GJPVA@isocpp.org>)
	id 1c1wFf-0000GN-UH
	for gclcip-std-proposals@m.gmane.org; Wed, 02 Nov 2016 15:10:51 +0100
Original-Received: by mail-wm0-f72.google.com with SMTP id p190sf13410286wmp.3
        for <gclcip-std-proposals@m.gmane.org>; Wed, 02 Nov 2016 07:10:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:user-agent:in-reply-to:references
         :mime-version:content-transfer-encoding:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=/phJ8jicKvqAeGJJ0MjB/e7NFVNacPpQgFP3DIm4gNs=;
        b=bpLUaWjkbRJ1Q8rxqva+uN6bEudWo8eEQsjEvfMBK9A7pprnrGPNbYxNgIsWqVfTxg
         Nr8kA+7TEh+4Yw02O+Jss1DwvZzyULGMw0fQPXJgLY/MJw69RiN3AaPvPW3NuDk9hu8l
         yVtNIotlM9KAE5eKywdxJYY/WYnNhpJhx+WpBj54SWsSy04IxS8AwpF8/ippAbkjcVrr
         tnDRJc0w8KXuj3cCKO4BVk2sejtnjAzmknEnkz26+1Cqy2b69uuMZMEZCCxf8lC8Fn02
         p3wvZsJloCtZUJ2i9ROsXtdckhCinGuUnlBOT+f69Q6XcoHBZ86OLzswroYzBBIjind8
      
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version:content-transfer-encoding
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=/phJ8jicKvqAeGJJ0MjB/e7NFVNacPpQgFP3DIm4gNs=;
        b=D5Xm0orGtzWlJNAyzDkT1hYJsNnsHS72AvoROF8bS0jq8l52P1KS3oKWAeENvLBfqe
         i48zQGXrIAsnhy5fs0O5I2Ws8gTY4J16ZsIsBhpjRl19PQ2LcFjIKNXlkTWCIqMIsB3l
         cawZ8aPzX3utROvxB31TVRbSr+19mm1wFGkp4O4LA3ldKXcJDD+v4Ihydo5rEw8AZD1l
         X46kG+Dk/24YsiFROZExNe1jmfmX2ccxSM8hyuefByrtrvBalqLu0Wp8iJ5c2RnmaSn+
         W6CKyM7R/Gryy3ZFN7mvAYo25EuvHtysralhDfqF0F3lC2ZJNejvJPJ58vysQ9tFs4qu
  
X-Gm-Message-State: ABUngvd+8ACQ0U2x9rMc+Io5+avfrKwFopVqZRsZjWf4wKlq11eaJbEY9nJRjdQSz8mDtQ==
X-Received: by 10.28.215.206 with SMTP id o197mr417315wmg.2.1478095854950;
        Wed, 02 Nov 2016 07:10:54 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.134.1 with SMTP id i1ls432043wmd.12.gmail; Wed, 02 Nov 2016
 07:10:54 -0700 (PDT)
X-Received: by 10.194.216.37 with SMTP id on5mr3040856wjc.162.1478095853986;
        Wed, 02 Nov 2016 07:10:53 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [78.47.120.188])
        by mx.google.com with ESMTP id b3si2744567wjy.202.2016.11.02.07.10.53
        for <std-proposals@isocpp.org>;
        Wed, 02 Nov 2016 07:10:53 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) client-ip=78.47.120.188;
Original-Received: from tjmaciei-mobl1.localnet (unknown [IPv6:2601:1c0:4501:5f9f:d130:7f7c:ebed:53ad])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 8598611B417
	for <std-proposals@isocpp.org>; Wed,  2 Nov 2016 07:10:53 -0700 (PDT)
In-Reply-To: <2145466f-4680-4489-8728-258fd4374aff@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mailfrom=thiago@macieira.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:29344
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29344>

Em quarta-feira, 2 de novembro de 2016, =C3=A0s 06:55:29 PDT, Nicol Bolas e=
screveu:
> You must not do much UTF-8 work. Because `char` can be signed or unsigned=
,
> the only reasonable way to manipulate UTF-8 code units is to use `unsigne=
d
> char`. While a signed `char` is required to be able to store UTF-8 code
> units, you don't want to invoke implementation-defined behavior when
> bitshifting signed types. So you have to use `unsigned char`.
>=20
> So it's hardly unreasonable to pass UTF-8 strings around via `unsigned
> char*`, rather than `char*`.

I didn't respond to that part of the email, about UTF-8, because I thought =
we=20
were getting char8_t (see Tom Honermann's email).

Why do we need:
 - char
 - unsigned char
 - char8_t
 - byte

It seems to me we have one too many. Why do we need four? What are the four=
=20
distinction types?

--=20
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

--=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/3804442.N9iLZUPZCD%40tjmaciei-mobl1.

.
