Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62561 invoked from network); 29 Jul 2014 01:49:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jul 2014 01:49:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.47 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.218.47 mail-oi0-f47.google.com Received: from [209.85.218.47] ([209.85.218.47:58267] helo=mail-oi0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/43-41808-6ADF6D35 for ; Mon, 28 Jul 2014 21:49:27 -0400 Received: by mail-oi0-f47.google.com with SMTP id x69so6803722oia.20 for ; Mon, 28 Jul 2014 18:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=HUnE+apaW+3e585PBzT+F9LfQlvZ/HWxVgcBrXxFRMk=; b=ifymfvYCFFusIwYyoWqt/nFHTbDayJ0k6jBfpT4aJZFPo78LkkGDsyRGrvOu4CCaF2 3Echeu4gF6TDqA1X4RUGOuGiydWTrf39bFrpK/HXNd3hBYR8XsDAxVYiF5fCXwOKnnUY YX0+c7HyWhJ6yEHJ5hFlSiohapzNkoO4qzUDqPFhAZ1+ayToeur9rucN/wHX07ewWKAT X5l0TpXaXmiSLt8y+LlR+nxnQUoVIy7Fxe1bGiFTLc6Kktkwrc+x0/SBqMyUeW8iveGr /eqBhtiF825RKFeupCjcdmjSc0nFFW04/Jw/MVPzu3+3409upFEucrOljOmYJXeU1dGi B99Q== MIME-Version: 1.0 X-Received: by 10.182.236.65 with SMTP id us1mr35712682obc.38.1406598576322; Mon, 28 Jul 2014 18:49:36 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.76.180.193 with HTTP; Mon, 28 Jul 2014 18:49:36 -0700 (PDT) In-Reply-To: References: Date: Mon, 28 Jul 2014 19:49:36 -0600 X-Google-Sender-Auth: 0kYSsFtMBKOpSed-vey3ogZ8il0 Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] "PHP" namespace? From: levim@php.net (Levi Morrison) > If it is changed to use its own namespace, user space APIs may be changed > flexible and user controlled manner. Thus, PHP may have > > - Consistent naming > - Consistent parameter order > - Graceful function/class/interface deprecation > (We know what we should do for these, right?) I do not support it for consistent naming or parameter order by themselves; this would likely create more confusion. However I see value in creating new APIs for certain operations such as sorting, mapping, reducing and filtering. These new APIs could work on both arrays and traversables and provide a more cohesive API. This would 'fix' several bug reports dealing with array functions that you can't pass traversables or array-like objects to where you would reasonably expect to be able to. When creating these functions we could be careful to create consistent naming conventions and consistent parameter orders, but again I consider this a side-effect rather than a reason.