I think the only advantage of ASCIIString is that str[8:12] is performant, 
because you know the byte offset directly from the index. That's not true for 
UTF8String.

--Tim

On Sunday, September 27, 2015 11:00:14 AM Daniel Carrera wrote:
> On 27 September 2015 at 10:39, Milan Bouchet-Valat <[email protected]>
> 
> wrote:
> > Then the default concrete type can be called String or Str, and that's
> > what people will use. Calling the abstract type String was confusing as
> > it could prompt people to write type-unstable fields believing that it
> > was the concrete one.
> 
> So... it would be a good idea if I made an alias to a concrete type the way
> Gabor did?
> 
> typealias String UTF8String
> 
> 
> Is there a reason to use ASCIIString instead of UTF8String? They are both
> concrete types, but UTF8 allows me to include greek characters.
> 
> Cheers,
> Daniel.

Reply via email to