Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68843 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48146 invoked from network); 2 Sep 2013 10:54:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 10:54:05 -0000 Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.178 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 74.125.82.178 mail-we0-f178.google.com Received: from [74.125.82.178] ([74.125.82.178:47619] helo=mail-we0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/C3-29856-B4E64225 for ; Mon, 02 Sep 2013 06:54:03 -0400 Received: by mail-we0-f178.google.com with SMTP id u54so3545934wes.23 for ; Mon, 02 Sep 2013 03:54:00 -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=DajRWnLXvoa3bXEIRQ1YFZ4kJ6B0mRFEpE3bu6nQHqQ=; b=qq1+xC4FCrQVSl6HPLdhdzNVeQxp/TuXXOfCx1rz+K4joK/LT+WHD5UhxogtpL19Ro ulUgP4FOQj6RQB0vYPJO7RpuNjNvqpJ4DcsE8WIphB4pjdQzcU6U2Y7fFanP2B83gxBK JlMJYQ6Y0elcwbo+FRzCSETuALvCPLHreS5Yusazl3lKTjWf/eJJ3oHWlLWTS5z5c8R2 tIue9c7iZS0oB/P7VfCXYKG6ICAOYCC5jgvdqD2eXuo7mAvTns2FeGO5Y02jUFAAW+/0 TqByk7uUICFu4HNIXjbZNn22P+m3Q+E74V/dwvFzWfzNSeSM/1JLR0GRF1mvXsE5yMuk kWNw== X-Received: by 10.194.170.133 with SMTP id am5mr4961765wjc.42.1378119240507; Mon, 02 Sep 2013 03:54:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.5.9 with HTTP; Mon, 2 Sep 2013 03:53:20 -0700 (PDT) In-Reply-To: <52246BB4.5090903@lsces.co.uk> References: <52243BA6.5040905@sugarcrm.com> <52244119.4040807@sugarcrm.com> <5224543C.7030702@lsces.co.uk> <5224674B.40008@lsces.co.uk> <52246BB4.5090903@lsces.co.uk> Date: Mon, 2 Sep 2013 12:53:20 +0200 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary=089e0122e92ec9e73104e564634b Subject: Re: [PHP-DEV] [RFC] Skipping parameters take 2 From: krebs.seb@gmail.com (Sebastian Krebs) --089e0122e92ec9e73104e564634b Content-Type: text/plain; charset=ISO-8859-1 2013/9/2 Lester Caine > Ferenc Kovacs wrote: > >> >> you write your code where you copypaste the default value >> some time passes >> somebody changes the default value in the called function definition >> your code now calls the function with a non-default value. >> > > Actually THAT is a problem I've hit in reverse! Some bugger changing the > default in a library without understanding the consequences! In which case > the fix was to put in the 'default' I wanted ... this works either way, but > I could at least see in the IDE that the default had been changed so > tracing it did not take as long as it could have. But thats a problem no language (with default values for parameters of course) can help you, except you avoid default values in every case. I for myself always use "null" as default value, so I must say, that a special keyword doesn't bring me any benefit. In this meaning: The named parameters are more useful :) Regards, Sebastian > > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=**contact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - http://rainbowdigitalmedia.co.**uk > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- github.com/KingCrunch --089e0122e92ec9e73104e564634b--