Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60679 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5556 invoked from network); 27 May 2012 18:04:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2012 18:04:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=admacedo@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=admacedo@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: admacedo@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gg0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:41616] helo=mail-gg0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/9C-09778-B9C62CF4 for ; Sun, 27 May 2012 14:04:12 -0400 Received: by ggnf2 with SMTP id f2so1721103ggn.29 for ; Sun, 27 May 2012 11:04:09 -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=J9FSkoeWPAbN+JlD3ohoH3yRpXd1OP6BylRtoOxys2I=; b=jhCBScYN+9dNwRu32OQDawx3L4x6/CZ3nmpxYc/55yrhbgVz5detpsDwDICdudsX3i kii1f6YGqyXVYrFQ0zMBztl68AwrwpwMtgF7yRgRVlUaXSgONE1FxP2FpP34B3gbuAoI y3WtXBYYUoKg75xVwhrZihcDWSIoxk5C+MM/FkErEvtw//59bHr7qh/79njlx8C+VT6J 117KSt4SaDETBI/HaQvk5boYQJz4/g518tsKFv8qiNZMgUXsOAkpToU3F3lrHKwte5rV X5tcVAH8xzpJ8HGiQSp3mYI5Y2YOV1Pg12tNVEUJY3/yHlSeZNmtjikVXWUDh9hp7VNN wRvg== Received: by 10.236.109.198 with SMTP id s46mr1351314yhg.43.1338141849068; Sun, 27 May 2012 11:04:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.50.43 with HTTP; Sun, 27 May 2012 11:03:28 -0700 (PDT) In-Reply-To: References: Date: Sun, 27 May 2012 19:03:28 +0100 Message-ID: To: Mathias Grimm Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=20cf303ea76892a38404c1086d31 Subject: Re: [PHP-DEV] RFC Skipping optional parameters for functions From: admacedo@gmail.com (Daniel Macedo) --20cf303ea76892a38404c1086d31 Content-Type: text/plain; charset=ISO-8859-1 NOTE: Although related/solving some of the same problems; skipping optional parameters (several commas or using 'default' keyword) is different from using named parameters. And both have different supporters/haters over each change. I wouldn't like to restart the whole debate over the KISS, "Not the PHP way", or the alternate ways work around the original issue. But on a personal opinion, I'd like to see named parameters implemented - which also solves the skipping optionals regardless of the order - the only concern of the community at large might be the proper syntax.. I also suggested the even shorter array syntax for 5.4: http://php.net/migration54.new-features Which would use the colon as a separator $a = ['one': 1, 'two': 2, 'three': 3, 'four': 4]; And the idea it would be simpler/efficient/readable inspired some dissent over both the readability and the PHP-way. So I'm not sure if your suggestion won't keep the same issue... --20cf303ea76892a38404c1086d31--