Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68998 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35428 invoked from network); 11 Sep 2013 12:39:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2013 12:39:47 -0000 Authentication-Results: pb1.pair.com header.from=alex@kazik.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=alex@kazik.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain kazik.de designates 209.85.192.182 as permitted sender) X-PHP-List-Original-Sender: alex@kazik.de X-Host-Fingerprint: 209.85.192.182 mail-pd0-f182.google.com Received: from [209.85.192.182] ([209.85.192.182:36940] helo=mail-pd0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/33-15730-29460325 for ; Wed, 11 Sep 2013 08:39:46 -0400 Received: by mail-pd0-f182.google.com with SMTP id r10so9151497pdi.13 for ; Wed, 11 Sep 2013 05:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kazik.de; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=CUHzwmrfcXGMeCqRFTYw1auj3ZZ6JK0pNnO4HlfT+zY=; b=p7PCL6W/0+LOsgX1P9gNrt33KqhwTKkqI3KthGJ+z0mkmULzsX9CqM0NoBLw6tD6ur /Y991/RLJympvOHq4atrP/SKfIvUadcVPZxs0GspMRhxTizCyVrbKMdG02/dZM75vc/Y KrRsjwbU9ol6f1VLXm86hRiG2qoSET5QTTPys= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=CUHzwmrfcXGMeCqRFTYw1auj3ZZ6JK0pNnO4HlfT+zY=; b=B0mq1gQQWA+yLAM6n2D5OpFE86+BYWALdeepPnRAlJs4isFlfFKXVj5DiuOQEPWl64 AN7PsdgIUBsH9KPqGg582p6v8NpgG3X3nb6gxWP5+tZdZOz4CawkuKudoihSsCTVbeDi 3ccLVpY6/bwZCp2QrD8T3NK112X3EY6+ItHlBVyubEJdIjSLbG+hkx+APcgfwZJ6zo/M 94gP02BBKQknz9gmFm/zgOtaQ753M4rEsnsDHMwV+TE0jPVVvFnqMbsbBz8UzSXTi5Uk +sTbwUFVhR/o38lZziLjGqB/XnT9hLoqszhMJusRXelKV17vXB8f4CoRn7NihO9HE3rB l8ug== X-Gm-Message-State: ALoCoQk6mAXFuzXmbsKyC1hOhk1wokbYgRLQpOKWGybNDTvQ78QxM6DnA+YohCipdM6t3tqZurIF X-Received: by 10.66.171.77 with SMTP id as13mr3383670pac.170.1378903183512; Wed, 11 Sep 2013 05:39:43 -0700 (PDT) MIME-Version: 1.0 Sender: alex@kazik.de Received: by 10.68.137.166 with HTTP; Wed, 11 Sep 2013 05:39:22 -0700 (PDT) X-Originating-IP: [212.8.208.194] In-Reply-To: References: Date: Wed, 11 Sep 2013 14:39:22 +0200 X-Google-Sender-Auth: ftwBS9XZFcRWYS_k2fhxZ1-oXE0 Message-ID: To: "jbondc@openmv.com" Cc: Nikita Popov , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [lists.php] RE: [PHP-DEV] Re: [RFC] Named parameters From: lists.php@tx0.eu (ALeX) On Mon Sep 9 03:18 PM, Nikita Popov wrote: > > I created an RFC and preliminary implementation for named parameters: > > https://wiki.php.net/rfc/named_params I really like the idea! On Wed, Sep 11, 2013 at 2:16 PM, jbondc@openmv.com wrote: > > My preference would be to only support named parameters based on the initial declaration $oldBar (much simpler expectations). I bet that there is already many code "renaming" the parameters so I agree with Nikita to match it against the called instance (and not the initial declaration). As for the open questions I would prefer something from the "can use keywords" section. I think one with the dollar sign would be best since thats how the declaration looks like, e.g. "$foo => xxx" or "$foo: ...".