Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60809 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21695 invoked from network); 12 Jun 2012 23:21:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jun 2012 23:21:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=slevy1@pipeline.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=slevy1@pipeline.com; sender-id=unknown; domainkeys=good Received-SPF: error (pb1.pair.com: domain pipeline.com from 209.86.89.61 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: slevy1@pipeline.com X-Host-Fingerprint: 209.86.89.61 elasmtp-galgo.atl.sa.earthlink.net Linux 2.4/2.6 Received: from [209.86.89.61] ([209.86.89.61:45014] helo=elasmtp-galgo.atl.sa.earthlink.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/41-10010-20FC7DF4 for ; Tue, 12 Jun 2012 19:21:38 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=pipeline.com; b=beF22Njf44NHqhSrQpFlhr634iA/6Sw+FyXBxDUXCEYk+FcPYOGwacG3bGzjtNmL; h=Message-ID:Date:From:Reply-To:To:Subject:Mime-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:X-ELNK-Trace:X-Originating-IP; Received: from [209.86.224.67] (helo=wamui-haziran.atl.sa.earthlink.net) by elasmtp-galgo.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1SeaOx-0004OF-GC for internals@lists.php.net; Tue, 12 Jun 2012 19:21:31 -0400 Received: from 216.175.88.175 by webmail.c.earthlink.net with HTTP; Tue, 12 Jun 2012 19:21:30 -0400 Message-ID: <26584272.1339543291119.JavaMail.root@wamui-haziran.atl.sa.earthlink.net> Date: Tue, 12 Jun 2012 16:21:30 -0700 (GMT-07:00) Reply-To: slevy1@pipeline.com To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: EarthLink Zoo Mail 1.0 X-ELNK-Trace: ad108fc9e0b7e924cd4e711cd2c366963ec3a0d067c770e17cc08a1ced30ce9362a0c336c915d04f350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 209.86.224.67 Subject: Support negative indexes for arrays and strings From: slevy1@pipeline.com I feel that for PHP to incorporate some of the convenience that Python offers is a good particularly with respect to attracting the upcoming generation. PHP needs an injection of new coolness to attract and captivate the imagination of young college-age people who are being exposed to Python as part of their CS curriculum. I think Easen's proposal for PHP to have negative indexing for strings (not arrays) is well-thought out, and conservative too. I think it would be an excellent addition. +1! Sincerely, Sharon