Re: Unicode strings?
| From: | Yasuo Ohgaki | Date: | Thu, 13 Mar 2014 20:45:21 +0000 |
| Subject: | Re: Unicode strings? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73130@lists.php.net to get a copy of this message | ||
Andrea,
On Fri, Mar 14, 2014 at 5:36 AM, Andrea Faulds <ajf@ajf.me> wrote:
>
> I agree with your argument in general, but restricting pattern will break
> existing scripts which are working now. If
>
> $café !== $café
> 0x63 0x61 0x66 0xC3 0xA9
> 0x63 0x61 0x66 0x65 0xCC 0x81
>
> is issue. It's current issue. Do we really have to care about this and
> introduce BC? It seems documentation would be enough.
>
>
> Writing programs in other languages is generally bad practise anyway. I
> don’t think PHP should encourage it if it will cause problems.
>
> This would introduce BC breaks, yes, but I suppose you could probably
> write a program to change identifier names.
>
Writing test programs in native language is common now.
I think this is RSpec (Ruby's UNIT test framework) influence.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net