Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68832 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23758 invoked from network); 2 Sep 2013 08:02:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 08:02:18 -0000 Authentication-Results: pb1.pair.com header.from=florinpatan@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=florinpatan@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.46 as permitted sender) X-PHP-List-Original-Sender: florinpatan@gmail.com X-Host-Fingerprint: 209.85.219.46 mail-oa0-f46.google.com Received: from [209.85.219.46] ([209.85.219.46:47106] helo=mail-oa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/D3-32023-90644225 for ; Mon, 02 Sep 2013 04:02:17 -0400 Received: by mail-oa0-f46.google.com with SMTP id o20so4882619oag.5 for ; Mon, 02 Sep 2013 01:02: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:from:date:message-id:subject:to :cc:content-type; bh=A3c2H5HU3wtr6qKs/pzdzYsk2lFGZhUza1VvxwE/6aQ=; b=e7hCzw62Jmiv4M50PWimPhwCQHOR+MMlMZR2NK05AMydBNb5HaySbcR6FUKZNK3uZV fF7jXnpU9N1tz8tUFbUXB8agEC8EZF/yuVI4BSmiDRFf34eXXhm+0G8n8sSgivoRNLJG UzVVxUc64k9gwaf5/VTuq9dbaUqyc99ICc58YpWyaTTtCZriFSC1qlHk42tVIPWCT1U0 /aKQCm+zYduBd0wHFh0EOhikbqYC3nqZVSwQk3g0ZwBenUmO5Ce6VXw0z8XJzN3d/Z3B cHdN6/aXEPoWw5ke/Anj++KBZ5Ngsq1fdEQXmNF3H3fQ8STTxxVqQLQgjOB+cLdDL3p/ bsug== X-Received: by 10.182.213.133 with SMTP id ns5mr16236373obc.62.1378108934487; Mon, 02 Sep 2013 01:02:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.85.133 with HTTP; Mon, 2 Sep 2013 01:01:44 -0700 (PDT) In-Reply-To: <52244119.4040807@sugarcrm.com> References: <52243BA6.5040905@sugarcrm.com> <52244119.4040807@sugarcrm.com> Date: Mon, 2 Sep 2013 10:01:44 +0200 Message-ID: To: Stas Malyshev Cc: Laruence , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Skipping parameters take 2 From: florinpatan@gmail.com (Florin Patan) 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=0", "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. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Hi, For me as a user it would make much more sense to have named parameters then typing default. Default also feels a bit strange to type. What if I miss one default in the line? Or in the other proposal here, what if I miss one comma? Named parameters would also solve a problem from another RFC that's being proposed right now if I understand correctly so why not go for that? Kind regards ---- Florin Patan https://github.com/dlsniper http://www.linkedin.com/in/florinpatan