Re: Unicode strings?

From: Date: Thu, 13 Mar 2014 09:06:11 +0000
Subject: Re: Unicode strings?
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Rasmus Lerdorf wrote:
Unicode variable names ARE secondary, but if the handling of unicode
works as well as it seems to be for me then it may be an option that can be considered.
http://3v4l.org/kWb0U Please help me, what is this about?
Exactly what has already been discussed? You can use unicode strings in many areas of PHP, but it is not by design, but rather as the result of 'holes' in the design.
That's not a hole in the design. It was quite deliberate and it had little to do with Unicode at the time. It was a deliberate effort to not artificially limit identifiers beyond that which the language syntax naturally prevented. Think <space> ; , { } ( ) etc.
It is a 'hole' in so far as it does allow unicode strings to be used in places where one of the proposals to tidy up unicode support is to close that hole. That the design decision at the time allowed unicode through while preventing other 'invalid' identifiers was probably correct but there are a number of those 'holes' (not just unicode ones) which people are now trying to close and it is identifying new rules that we are trying to do for PHP6? My memory these days is not as good as it used to be and 30 years ago I could identify line numbers of programs while on the phone to customers. Today I have trouble remembering the customer rang :( Another reason why these subtle changes to how things work become more annoying, habit is the long term memory. But I think that one of the previous discussions on the very point of variable names was to allow limited use of them? So closing that hole now would be a major BC break? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

Thread (28 messages)

« previous php.internals (#73101) next »