All,

On Wed, Nov 16, 2016 at 9:37 AM, GeeH <[email protected]> wrote:

> After discussion with Larry last night I suggested an edit that states
> that all containers should support a valid PHP string in UTF-8 format. I
> made that suggestion on the pull request.
>

My suggestion would be not to specify "UTF-8" character encoding.

There are a few reasons for this, but to put it quickly:

1. There are plenty of other character sets in common use around the world.
Why limit it?

2. The notion of variance suggests that implementers of the interface can
accept more than UTF-8. That's awesome. However, those that depend cannot
without losing the benefit of the interface. This effectively prevents
anyone from sing the interface unless they use UTF-8 in the first place.

In the eyes of interoperability and standard, unless there's a strong and
compelling reason to add "UTF-8" to the spec, why specify a character set
at all? What benefit is there in artificially limiting the available
strings?

Why not simply say "support all valid PHP strings" which would by
definition be a super-set of UTF-8, and indeed be any representable
character no matter the encoding.

My suggestion anyway.

Anthony

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/CAAyV7nHFnHoJvxMcnuyE-JqPrGFJq6J6PJyziJ-S%2Bt9ZVYVJbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to