W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

Re: IDL: special DOMString that converts to Unicode

From: Simon Pieters <simonp@opera.com>
Date: Mon, 29 Oct 2012 00:36:10 +0200
To: "Anne van Kesteren" <annevk@annevk.nl>, "Robin Berjon" <robin@w3.org>
Cc: public-script-coord@w3.org
Message-ID: <op.wmww6kyxidj3kv@dhcp26-236.enst.fr>
On Mon, 29 Oct 2012 00:14:59 +0200, Robin Berjon <robin@w3.org> wrote:

> On 26/10/2012 12:59 , Anne van Kesteren wrote:
>> I think we should introduce UTFString to make this conversion explicit
>> and not bother tons of standards with boilerplate language that is
>> easily forgotten.
> [Bikeshed Advisory]
> In which case can we just call it "string"?

I think it's better if it's clear that it's only supposed to be used where  
the overhead of ensuring Unicode cleanness is necessary, which "string"  
doesn't communicate. UTFString seems a bit clearer;  
DOMStringWithoutLoneSurrogates is clearer still but quite long.

Simon Pieters
Opera Software
Received on Sunday, 28 October 2012 23:36:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:07 UTC