Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38157 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45466 invoked from network); 10 Jun 2008 23:23:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2008 23:23:48 -0000 Authentication-Results: pb1.pair.com header.from=preinheimer@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=preinheimer@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.190 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: preinheimer@gmail.com X-Host-Fingerprint: 209.85.128.190 fk-out-0910.google.com Received: from [209.85.128.190] ([209.85.128.190:42390] helo=fk-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/D2-26183-20D0F484 for ; Tue, 10 Jun 2008 19:23:47 -0400 Received: by fk-out-0910.google.com with SMTP id 18so1740944fks.7 for ; Tue, 10 Jun 2008 16:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=IgPOf7571C1tIDsASLnV/h/EKQ8lHYAry9lLVyBzQT0=; b=SDbioiTNW1m3jarIjypD8B8wEF33+IJLtStKcS5Cf6VfXiw7UEl28FuItLn7frgc2F v/sis7mg3u+ibNVFrsjokxZ3EgpBuB0yW3mTKZJoYcXCuAYP1lwm+m1cMch8CU2cqI5+ VvgsmB8m//uZMG2/8imex2aB69Z0YvbWEmAvs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=MLp+9DcK7+cM1GroBopdXdv8u6C37CWEQU9cZe75+1tg/GFTqOVQa34BKeIfaQOp8N 3GEucE27QDkLJOAOBPPQcZMG7o132bHQjrNflJNSQzG94HbOoVm0JYJaa7+5U4wRr/u+ n5tdGaZpFYoTVwFn8QoG/cpit5C+baHhWd7Uk= Received: by 10.82.176.11 with SMTP id y11mr377959bue.53.1213140223008; Tue, 10 Jun 2008 16:23:43 -0700 (PDT) Received: by 10.82.159.3 with HTTP; Tue, 10 Jun 2008 16:23:42 -0700 (PDT) Message-ID: <6ec19ec70806101623j674ab590l43439893228ed6ac@mail.gmail.com> Date: Tue, 10 Jun 2008 19:23:42 -0400 To: internals@lists.php.net In-Reply-To: <77972256-ED0C-4FCE-8DEF-8283FE1BBFC5@roshambo.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_20526_30145728.1213140223000" References: <77972256-ED0C-4FCE-8DEF-8283FE1BBFC5@roshambo.org> Subject: Re: [PHP-DEV] deprecation status of $str{42} versus $str[42] From: preinheimer@gmail.com ("Paul Reinheimer") ------=_Part_20526_30145728.1213140223000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline >So unless this thread changes something, an E_DEPRECATED will be added to HEAD (PHP >6.0.0) for curly brace string access ( $str{42} ) and the documentation will remain as is. I'm well aware that I don't get a vote, so I'll skip the +1. That being said, I'd like to argue in favour of depricating the curly braces. My reasoning is simple, every time a new feature is up for inclusion in the language hours/days/weeks/months are spent arguing over what characters/operators will be used in order to identify the new feature. We're out of characters.Killing the duplication now means that when PHP 7 roles around we've got two characters we can use for some killer new feature. (I'll go back to the quiet corner now) paul (preinheimer@php.net) -- Paul Reinheimer ------=_Part_20526_30145728.1213140223000--