Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41761 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38628 invoked from network); 7 Nov 2008 19:03:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2008 19:03:10 -0000 Authentication-Results: pb1.pair.com header.from=dave@dmi.me.uk; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dave@dmi.me.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain dmi.me.uk designates 213.171.205.116 as permitted sender) X-PHP-List-Original-Sender: dave@dmi.me.uk X-Host-Fingerprint: 213.171.205.116 unknown Received: from [213.171.205.116] ([213.171.205.116:59904] helo=scaramanga.siterage.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/9A-02726-DE094194 for ; Fri, 07 Nov 2008 14:03:10 -0500 Received: from localhost (scaramanga.siterage.net [127.0.0.1]) by localhost.akadia.com (SiteRage Mail Server) with ESMTP id A2BBDCECC; Fri, 7 Nov 2008 19:03:06 +0000 (GMT) X-Spam-Flag: NO X-Spam-Score: -4.355 X-Spam-Level: X-Spam-Status: No, score=-4.355 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.043, BAYES_00=-2.599, DNS_FROM_SECURITYSAGE=0.001] Received: from scaramanga.siterage.net ([127.0.0.1]) by localhost (scaramanga.siterage.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id u1GSGmQ9sjZn; Fri, 7 Nov 2008 19:03:01 +0000 (GMT) Received: from [192.168.201.2] (ip9.net195-72-173.ci-net.com [195.72.173.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by scaramanga.siterage.net (SiteRage Mail Server) with ESMTPSA id A089FCEC2; Fri, 7 Nov 2008 19:03:01 +0000 (GMT) Message-ID: <491490E5.9060406@dmi.me.uk> Date: Fri, 07 Nov 2008 19:03:01 +0000 User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 To: Travis Swicegood CC: Ronald Chmara , Nate Abele , PHP Development References: <37298173-C0B0-413C-AA22-2B8EE75E3AEA@omniti.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Re: Case sensitivity From: dave@dmi.me.uk (Dave Ingram) 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")