Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68866 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5694 invoked from network); 2 Sep 2013 20:55:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 20:55:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=dor.tchizik@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dor.tchizik@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.42 as permitted sender) X-PHP-List-Original-Sender: dor.tchizik@gmail.com X-Host-Fingerprint: 209.85.219.42 mail-oa0-f42.google.com Received: from [209.85.219.42] ([209.85.219.42:57755] helo=mail-oa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/6E-29856-33BF4225 for ; Mon, 02 Sep 2013 16:55:15 -0400 Received: by mail-oa0-f42.google.com with SMTP id n12so1718682oag.1 for ; Mon, 02 Sep 2013 13:55:12 -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=6Mbn+AD8pXU0XvwtRx/2w9q4cWoHtoG29Su9aXXtW1w=; b=xK57avhmZLQooZtvlFA+jEUFKxC+oQPqUg/HBIb7tJiyma5fSN4GTKiJLpPQWiHZG4 bi1weFy0FB34JF/UFV05hjP8eKX5qXpsu0g8yq7IODFp/PE6aFyZU2G9FrOIN9RznI7X Pt9dvDZi/dMN802LanetL7GaWZvgCzp9KVpBzVqllvzro1zSUc5yP+qpIaW3h27i9Kgt hwoQ6EDODgn8E+x+/v/PQjiViFLUU4h3/+0v4MKnle1ocid9xwaY73MicD5Z4WqQaJzS sw3rq/ec39VRq0QQbuOZYntSULC3dDtd5jcvAm+baif1x+aVhLE5I2CLZggjJRh+OB4g /khw== MIME-Version: 1.0 X-Received: by 10.182.237.44 with SMTP id uz12mr18471524obc.11.1378155311970; Mon, 02 Sep 2013 13:55:11 -0700 (PDT) Received: by 10.182.39.137 with HTTP; Mon, 2 Sep 2013 13:55:11 -0700 (PDT) In-Reply-To: References: <52243BA6.5040905@sugarcrm.com> <5224F0FB.9080506@sugarcrm.com> Date: Mon, 2 Sep 2013 23:55:11 +0300 Message-ID: To: Levi Morrison Cc: Stas Malyshev , Nikita Popov , PHP Internals Content-Type: multipart/alternative; boundary=e89a8ff1cf52d0bf7f04e56cc982 Subject: Re: [PHP-DEV] [RFC] Skipping parameters take 2 From: dor.tchizik@gmail.com (Madara Uchiha) --e89a8ff1cf52d0bf7f04e56cc982 Content-Type: text/plain; charset=ISO-8859-1 I don't like it. Empty is how it's done on any language which allows this sort of thing, it's the most intuitive and I don't see anything wrong with it. If you need this, it probably means that your priorities are not set well in the function. And if you have a function that has multiple optional parameters in which the order does not matter, you don't want multiple optional parameters, you want one optional array, which would contain whatever it is that you want. Language constructs and syntax helpers aren't a substitute for well-written code and documentation. On Mon, Sep 2, 2013 at 11:48 PM, Levi Morrison wrote: > Oops, didn't mean to send a blank message, sorry all. Just clicked on the > wrong spot. > --e89a8ff1cf52d0bf7f04e56cc982--