Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69079 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1867 invoked from network); 12 Sep 2013 06:43:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2013 06:43:55 -0000 Authentication-Results: pb1.pair.com header.from=linepogl@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=linepogl@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.46 as permitted sender) X-PHP-List-Original-Sender: linepogl@gmail.com X-Host-Fingerprint: 209.85.220.46 mail-pa0-f46.google.com Received: from [209.85.220.46] ([209.85.220.46:45572] helo=mail-pa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/E3-12981-8A261325 for ; Thu, 12 Sep 2013 02:43:53 -0400 Received: by mail-pa0-f46.google.com with SMTP id fa1so677367pad.19 for ; Wed, 11 Sep 2013 23:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=cGP6VhQSgxT5dBhZnGa1wW7ERcy4mMmqtBxmQYzQCeg=; b=KpT5R/my3adDHM2uq4GEFicTtrAjbZWQbfGTYq7eVUBkJsn79pF0M23QCe9NKRCusV f7rhRQ7m/hYlmYfKwfHTSaOPkC5lbFMJvuc7CD3tl2ndmVozZ2kfsyFFSPbqx7P4L3P6 mBEzZITdrPo9Ni9lYdt/avo02zX7eTGBVDjX4Q2kwkfkG98KER8/LnBAMWvrGEgeNsIw BCLpmCIVDmsx/YdD+YVqbIkaYgG7LWO+giOpDtcVvhDLok6jdHSaVTsiOO5qKhZvVZBS nfO+kqTPAVrSdvArhEK1DCOApXSsm2SJPCobvh4g7iQp3jbrjeglaJP4ENsEo8FHSKoB e4VA== X-Received: by 10.68.200.9 with SMTP id jo9mr5894961pbc.120.1378968230183; Wed, 11 Sep 2013 23:43:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.130.105 with HTTP; Wed, 11 Sep 2013 23:43:30 -0700 (PDT) In-Reply-To: References: Date: Thu, 12 Sep 2013 08:43:30 +0200 Message-ID: To: Bob Weinand Cc: Developers List PHP Mailing Content-Type: multipart/alternative; boundary=047d7b15fbcf8445a104e62a0fa8 Subject: Re: [PHP-DEV] Support for keywords where possible From: linepogl@gmail.com (Lazare Inepologlou) --047d7b15fbcf8445a104e62a0fa8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2013/9/11 Bob Weinand > Hi! > > I tried to widen the naming possibilities by allowing to use keywords as > identifiers (for function names, class names, label (goto) names, ...) > where possible. It doesn't break any BC. > > Furthermore when BC needs to be broken in future for new keywords, it wil= l > have a smaller impact as most usages of the new keyword then still work. > > It also prevents unnecessary workarounds like in > https://wiki.php.net/rfc/named_params#syntax. There, to address a > function with a parameter called $array, we could simply write func(array > =3D> $value); instead of the until now necessary func("array" =3D> value)= ; > > You can find the patch here: > https://github.com/php/php-src/pull/438 > > Any thoughts about this? > > > I like it! I always hated the fact that "list" is a reserved word. Lazare INEPOLOGLOU Ing=C3=A9nieur Logiciel --047d7b15fbcf8445a104e62a0fa8--