Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60681 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21729 invoked from network); 28 May 2012 01:14:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2012 01:14:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=william.betts@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=william.betts@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: william.betts@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:57177] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/F0-13822-C61D2CF4 for ; Sun, 27 May 2012 21:14:21 -0400 Received: by obbuo13 with SMTP id uo13so5271958obb.29 for ; Sun, 27 May 2012 18:14:17 -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 :content-type; bh=+2uvWXKup5xQkTHU3qnHxvKWYbLARnMvR5sl1vNDbbs=; b=bAS30fCmmX9SYn0L8mY2B3/ZC5Fw04S+0ypKLdJcf/hfFzGUBgG/yRRpcJGVPZnEd5 lj2AaBKrTVH1QiAZhQDB3gc1gM7W4BKbuN12HWGWLVUw7TaRjGCt0cH7sjv5LhrYNVMe T5pz/G909w4juh+PaDQmX65AsEPm2Aq1ceC42eZhMdbo4PZ1lViYbmfY3Ngi1XDcR4Am i5W14hBL6kdBMNPYor5sB8ERcy2OP+b7r0ZCFN8XJM67YEwzdCdE88RRyOFoTp1fUold G/Famf/T/WcFMl4F5qorR3NjnL0SzUD/Imuijo7lueF2FsJcvQWySiYje/ZPnUlO0bHE vlwg== MIME-Version: 1.0 Received: by 10.60.0.164 with SMTP id 4mr6358515oef.28.1338167657582; Sun, 27 May 2012 18:14:17 -0700 (PDT) Received: by 10.182.128.39 with HTTP; Sun, 27 May 2012 18:14:17 -0700 (PDT) In-Reply-To: References: Date: Sun, 27 May 2012 18:14:17 -0700 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=e89a8fb1ec70e1501704c10e6f51 Subject: Re: [PHP-DEV] RFC Skipping optional parameters for functions From: william.betts@gmail.com (William Betts) --e89a8fb1ec70e1501704c10e6f51 Content-Type: text/plain; charset=ISO-8859-1 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. --e89a8fb1ec70e1501704c10e6f51--