Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69080 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4102 invoked from network); 12 Sep 2013 07:04:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2013 07:04:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 209.85.212.179 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:43177] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/44-12981-59761325 for ; Thu, 12 Sep 2013 03:04:55 -0400 Received: by mail-wi0-f179.google.com with SMTP id hm2so3129029wib.12 for ; Thu, 12 Sep 2013 00:04:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=3+zoVJ4kLMlMtLHRIW9gpEFvkCPjBAmiEK0BU3LqOxo=; b=S929W5ZcQYb5nfvqsVuIRp4EI+MBL7qg33tt0FeWhBbcRldpRmzn1ENFkQD7unM+Qm kIKLSDSmGUjDjfcVU7KU6h1q/fkyMamDjp+U+HERew6l+uAW/wl0YwfobKfxSRvgW+Lz i5m9SSq2tjSqoa80BYqwNmMqfasiYCRC/Xe6va137PZ0B/lYlzhXwI8GHdATQ5sJIcwO ln6KIhVnRQudnaC8JjBqNWLEt5BejrM6YhV1eVC8VbpImNjFj8hOzCg4WGli3bHmDIkP MF2XONZON/8XFAXX0yvFROrsUxcGSJBrYW7r83WQRZK+SwJTmpJ+eWR8YhTdbcVHjl8N //Tg== X-Gm-Message-State: ALoCoQkW5A1ri819dPJcqM5Ua+xe34zz3So9h8wxRfR11bloI1qotZXG+XwP6UKrZuz+1iyxgUQI MIME-Version: 1.0 X-Received: by 10.180.106.40 with SMTP id gr8mr4519145wib.11.1378969490972; Thu, 12 Sep 2013 00:04:50 -0700 (PDT) Received: by 10.194.201.104 with HTTP; Thu, 12 Sep 2013 00:04:50 -0700 (PDT) X-Originating-IP: [77.11.15.114] In-Reply-To: References: Date: Thu, 12 Sep 2013 09:04:50 +0200 Message-ID: To: Bob Weinand Cc: Developers List PHP Mailing Content-Type: multipart/alternative; boundary=f46d044519a9aa76f704e62a5a29 Subject: Re: [PHP-DEV] Support for keywords where possible From: kontakt@beberlei.de (Benjamin Eberlei) --f46d044519a9aa76f704e62a5a29 Content-Type: text/plain; charset=ISO-8859-1 Hey Bob, I like it very much, i flew over the patch to see what would be possible, and that includes many of the points that annoy me most of the time :-) greetings Benjamin On Wed, Sep 11, 2013 at 11:21 PM, Bob Weinand wrote: > 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 will > 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 > => $value); instead of the until now necessary func("array" => value); > > You can find the patch here: > https://github.com/php/php-src/pull/438 > > Any thoughts about this? > > Bob Weinand > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d044519a9aa76f704e62a5a29--