Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68833 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25515 invoked from network); 2 Sep 2013 08:07:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 08:07:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.175 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.223.175 mail-ie0-f175.google.com Received: from [209.85.223.175] ([209.85.223.175:57443] helo=mail-ie0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/34-32023-43744225 for ; Mon, 02 Sep 2013 04:07:16 -0400 Received: by mail-ie0-f175.google.com with SMTP id u16so7517003iet.20 for ; Mon, 02 Sep 2013 01:07:14 -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=Js56HlVRyvw2Put3wChWzmdzZDCKSY9AF+tj9gCXs9M=; b=K2+69wKleJNoHyatPRl/loitrL7wDWgSrdYGv19+tZA4bHZVAwz0ZmIJftW5lPEMLI 93H9Z3NIpxvpwupzFQksX5vd8V13hFbq8wIklaCtwa8JgFPcWLYvASCeaNcOx8nCcMHT AvDUokvm+kSS7wWnw8NhEdswVMrWKD2mQCaB+2PXwjRAF7FIHeOf9oXpweXOG+eGsd+q 6CxjrxY2yAzwiCmKcTsJ1yS+iS0L+xBK32UxDNL7H2CQsINlLClVB4i77jt2Bo06mKCL +qLVbUNqfxwXynpKj9o/kco5RTsI9tmQRW8L9efquns6JpUQSAS5vy15TzG+x9Cmvyv9 8NHw== MIME-Version: 1.0 X-Received: by 10.50.67.37 with SMTP id k5mr11142384igt.21.1378109233030; Mon, 02 Sep 2013 01:07:13 -0700 (PDT) Received: by 10.50.73.42 with HTTP; Mon, 2 Sep 2013 01:07:12 -0700 (PDT) In-Reply-To: <52244119.4040807@sugarcrm.com> References: <52243BA6.5040905@sugarcrm.com> <52244119.4040807@sugarcrm.com> Date: Mon, 2 Sep 2013 10:07:12 +0200 Message-ID: To: Stas Malyshev Cc: Laruence , PHP Internals Content-Type: multipart/alternative; boundary=047d7bdc18704bef0c04e5620f78 Subject: Re: [PHP-DEV] [RFC] Skipping parameters take 2 From: tyra3l@gmail.com (Ferenc Kovacs) --047d7bdc18704bef0c04e5620f78 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Sep 2, 2013 at 9:41 AM, Stas Malyshev wrote= : > Hi! > > > I am not sure whether this is a little overhead. > > > > but if we do want this. to be honest, I even prefer leave it empty to > > "default". > > > > like create_query("delete=3D0", "name", , , true); > > That's how it was initially, and I was convinced default is better. So I > don't think I'm going back to empty. default indeed seems to be more > readable (try to visually distinguish between ,,,, and ,,,, - if you > have a lot of code, it won't be that easy). It is more verbose, but PHP > never attempted to be "save the bytes" language. > > another small advantage would be that IDEs could show you the default value for the argument when hovering the default keyword. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --047d7bdc18704bef0c04e5620f78--