Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60682 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23042 invoked from network); 28 May 2012 01:18:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2012 01:18:09 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:42869] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/31-13822-052D2CF4 for ; Sun, 27 May 2012 21:18:08 -0400 Received: by werm13 with SMTP id m13so1886645wer.29 for ; Sun, 27 May 2012 18:18:05 -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=V/y0O7iEqAsKcKZoX+wkFqbvMtIvwhefbF4Ew32c79Q=; b=pMWcUgzExuAy43qsR2txF/Cp5BH+m7oEVDObiTrz6OWk8SBRcYU31EnV6A1WY/HiNM UnjeenYMJj2z9/7GlGB55QdNMxDcMYc9OP0fCdHY+LnZ+5BK1UHtJZFHzlvB2m5blYk8 B5neCSB7r9igV4dWL7+3efppw9UmPULacjeZRrf1yA7bnFVcBM1TokJGF7mp4U+1hhoj i9DeQ4khXxnEzq/z4rT0lNwik51T0iq/+PtxyZmhmK9RGKnSIKchvabriGBYcvFRkgtS vu4KKkUB6TEtZCMZgCmRSsF57vuxWbtStM0kDemzX3wZORDlh+aFTHgDbB8Qr8qh0dY1 NrqA== MIME-Version: 1.0 Received: by 10.180.83.197 with SMTP id s5mr11670024wiy.9.1338167885626; Sun, 27 May 2012 18:18:05 -0700 (PDT) Received: by 10.223.160.133 with HTTP; Sun, 27 May 2012 18:18:05 -0700 (PDT) In-Reply-To: References: Date: Sun, 27 May 2012 18:18:05 -0700 Message-ID: To: William Betts Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d044304e878fd5c04c10e7dd7 Subject: Re: [PHP-DEV] RFC Skipping optional parameters for functions From: kris.craig@gmail.com (Kris Craig) --f46d044304e878fd5c04c10e7dd7 Content-Type: text/plain; charset=ISO-8859-1 On Sun, May 27, 2012 at 6:14 PM, William Betts wrote: > On Sun, May 27, 2012 at 11:28 AM, Mathias Grimm >wrote: > > > Named parameter in the same way that goto does, with labels. A labeled > > parameter... > > But there always some drawbacks... such as mix named and conventional > > parameters. I think that you just chose one way and use, not allowing mix > > these two ways. > > > > > goto a; > > echo 'Foo'; > > > > a: > > echo 'Bar'; > > ?> > > > > > > I also think that should exists a strict way to write code, something > like > > error_reporting, but to ensure a specific way to write code, gaining > speed > > in the whole compilation thing. > > > > strict_code_standard = K&R > > strict_code_standard = GNU > > strict_code_standard = PEAR > > strict_code_standard = ZEND > > > > The GO land does it in some way > > > > I can see how enforcing a strict coding standard would be useful, but only > if you're also allowed to define your own. > I'm intrigued about the notion of having the option to use named parameters in function calls/declarations. Aside from the obligatory, "Changing anything in PHP would be too confusing!" complaint, what would be the primary argument(s) against this? --Kris --f46d044304e878fd5c04c10e7dd7--