Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85529 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47299 invoked from network); 29 Mar 2015 14:56:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Mar 2015 14:56:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.215.49 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.215.49 mail-la0-f49.google.com Received: from [209.85.215.49] ([209.85.215.49:36342] helo=mail-la0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/00-46952-4A218155 for ; Sun, 29 Mar 2015 09:56:37 -0500 Received: by labe2 with SMTP id e2so100675706lab.3 for ; Sun, 29 Mar 2015 07:56:33 -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=P7WbvjWKPnbUQXeFDDIPRtOGwkQYQ2zZ5Uq0wFY8Czc=; b=ZYwhdbEFQBUHsF7nKbjTVUp9pY7xbuMN6aWDbVl/ehO2pRKCTVQLSWRcIsuXPqyTQF 8o+ez/dPrMZeHYaqB86AJP6KhTZEBb66fHdTkIypCIiN8cC+J1SnlROYdFWs0ss9m4dB 1emJL5SeG1MHURqT42gCT8usFdjc7M1OlKucMeeVaNZg/I1kmSn2+F+Eq1Paeo4Feon6 JsY8eMS91gatpXK8SXwhRDQhovS8U/NWLVbkpbTSfvckdAuLpB4S2JEdFegBkNGcWYLw Zm9yWsO3JxJbWKSFb26zfxg1NBJ7EKFZPONmegtZDUrWmeIHr0bUK1Z9J1FqSoNyVRME 2t4A== X-Gm-Message-State: ALoCoQnhDfQZphfjdIT3XS/Fmr0UjDHVNOPKFjSIsF+rAhxbMhSTJXdYnKDuY+/N8tAQdM/weLLF MIME-Version: 1.0 X-Received: by 10.112.140.38 with SMTP id rd6mr25028014lbb.116.1427640993683; Sun, 29 Mar 2015 07:56:33 -0700 (PDT) Received: by 10.25.87.202 with HTTP; Sun, 29 Mar 2015 07:56:33 -0700 (PDT) X-Originating-IP: [78.145.250.167] In-Reply-To: <76D3DA4F-06EE-4F6B-893E-1D111FAD3C2C@gm.lv> References: <76D3DA4F-06EE-4F6B-893E-1D111FAD3C2C@gm.lv> Date: Sun, 29 Mar 2015 14:56:33 +0000 Message-ID: To: Gints Murans Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Named parameters From: danack@basereality.com (Dan Ackroyd) On 29 March 2015 at 12:28, Gints Murans wrote: > What happened to this RFC? This is a really great idea for php. The 'Skip Params' RFC (https://wiki.php.net/rfc/skipparams) went to vote and was declined. The 'named params' RFC (https://wiki.php.net/rfc/named_params) author has been working on stuff they feel is more important. > Reading over some old code, this way it would be a lot easier to understand what that second parameter boolean = true is: You can do this right now, if you want to: getIdByTitle('sample', $insert = true); > About syntax: $insert => true seems kind of confusing: > $insert = true; > getIdByTitle('sample', $insert => $insert) You shouldn't need it for the case where you're actually already using a parameter e.g. `getIdByTitle('sample', $insert);` already indicates what the parameter is. The only place where you could argue this syntax is needed is when you're passing in just a bare 'true' which has no syntactic meaning associated with it. That syntax works for all versions of PHP, so I guess a new syntax that achieves the same thing is unlikely to be that popular an idea. cheers Dan