Re: Re: Case sensitivity

From: Date: Fri, 07 Nov 2008 19:03:01 +0000
Subject: Re: Re: Case sensitivity
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-41761@lists.php.net to get a copy of this message
Travis Swicegood wrote: > On Nov 6, 2008, at 11:59 PM, Ronald Chmara wrote: > >> 1. All built-in PHP functions should be aliased in the worlds most >> used languages, so that declaring a "function" could also be written >> as: "funktsioon", "otstarve", "λειτουργία ", >> "ویرایش", "Fonction", >> "funcionar", "fungsi", "funzionare", >> "қызмет", "可算", "メソッド", >> "funkcja" (etc.) >> >> Can I get a +1? > > +1, but it'd be a ++1 if we could also take into consideration > dyslexic programmers. I would like to be able to write: > > } (oof$) cnuf_emos noitcnuf > ;oof$ ohce > { > I'd say that's more left-handed than dyslexic. Of course, handling mistakes in variable names would reduce the number of possibilities available: $foo++; echo $ofo; if ($oof > 4) break; I am now very tempted to write something that does this. I can think of a fairly easy and not-hugely-intensive implementation, too. I'd imagine the canonical form for each variable would be an anagram dictionary-style representation, with the letters arranged into alphabetical order for storage/lookup. Mead Raving (er, I mean, "Dave Ingram")

« previous php.internals (#41761) next »