Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68923 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49009 invoked from network); 6 Sep 2013 19:58:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Sep 2013 19:58:20 -0000 Authentication-Results: pb1.pair.com header.from=leverton@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leverton@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.176 as permitted sender) X-PHP-List-Original-Sender: leverton@gmail.com X-Host-Fingerprint: 209.85.214.176 mail-ob0-f176.google.com Received: from [209.85.214.176] ([209.85.214.176:58018] helo=mail-ob0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/38-05619-BD33A225 for ; Fri, 06 Sep 2013 15:58:19 -0400 Received: by mail-ob0-f176.google.com with SMTP id uz19so3943739obc.35 for ; Fri, 06 Sep 2013 12:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pPfiIYBvSg88SNtYA60tlvM8AggMZUuqGSY3v7Mg1HE=; b=n1GBn0/a6LNfj/L4SHLK03AJ/bCY8T2Pb5MWzjXesGCtyMWDAzs3xw/WKsIR+zf37O ezaW7BXfpVXsn84MBpkVTlB2TE92GggKXBOShF8JqYDkifwynx8fqA29O+E8erYQqPRN 1pwsiTjzaLuQXgJ+CCyH5Ah0vQVo7YR+1J9Mq12BylQBcsF8cEES06ZIghLK839kprCh vBv8QIaDIW2iYURHqMCpUvHs5DvtR1akXOBJAIVv6LcgDqWI3J0Q+4lumvWeQQA0fRIs xVh9yadLUlor/rnGL3asUBKClKk2Mk1atz5ztpLAWDrIuNwZ1QpVMPlXvceOV8zxTRhK FjmA== MIME-Version: 1.0 X-Received: by 10.182.131.166 with SMTP id on6mr3109248obb.60.1378497495559; Fri, 06 Sep 2013 12:58:15 -0700 (PDT) Received: by 10.182.133.34 with HTTP; Fri, 6 Sep 2013 12:58:15 -0700 (PDT) In-Reply-To: References: Date: Fri, 6 Sep 2013 14:58:15 -0500 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Named parameters From: leverton@gmail.com (Matthew Leverton) On Fri, Sep 6, 2013 at 11:39 AM, Nikita Popov wrote: > The RFC and implementation are not yet complete. I mainly want to have > feedback on the idea in general and on the Open Questions ( > https://wiki.php.net/rfc/named_params#open_questions) in particular. > I feel like this will just encourage more core PHP functions with an unmanageable number of parameters. Will there be any proposed guidelines to how future functions will make use of named parameters? e.g., Will we see native functions with 20 arguments? What I don't like about named parameters is that if I build a library, now even my parameter names are unchangeable if I don't want to break any backward compatibility, since I never know if somebody will decide to call my single parameter method with named parameters. Are we prepared to go through every PHP function and make sure the names of the parameters are set in stone before this feature would go live? So I'm neutral to this proposal, as I would never purposefully build a function that is so convoluted that it needs named parameters, but I understand that's how some people like to write code, and it could be useful in extreme cases. -- Matthew Leverton