Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59320 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37711 invoked from network); 2 Apr 2012 09:45:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Apr 2012 09:45:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.22 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.22 smtp2.ist.utl.pt Linux 2.6 Received: from [193.136.128.22] ([193.136.128.22:33952] helo=smtp2.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/CC-02210-255797F4 for ; Mon, 02 Apr 2012 05:45:55 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 19A4970003FA for ; Mon, 2 Apr 2012 10:45:51 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp2.ist.utl.pt ([127.0.0.1]) by localhost (smtp2.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id OZSFq6B-RxCZ for ; Mon, 2 Apr 2012 10:45:50 +0100 (WEST) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp2.ist.utl.pt (Postfix) with ESMTP id CFE3170003D3 for ; Mon, 2 Apr 2012 10:45:50 +0100 (WEST) Received: from slws007.slhq.int (a79-168-248-114.cpe.netcabo.pt [79.168.248.114]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 73278202086B for ; Mon, 2 Apr 2012 10:45:50 +0100 (WEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "internals@lists.php.net" References: Date: Mon, 02 Apr 2012 11:45:46 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_I=2ES=2ET=2E?= Message-ID: In-Reply-To: User-Agent: Opera Mail/11.61 (Win32) Subject: Re: [PHP-DEV] Addition of calendar to intl From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Mon, 02 Apr 2012 11:13:02 +0200, Pierre Joye wrote: > The only thing I really dislike is the procedural API. The prefix > "intlcal_" is not very nice, but what I really doubt is the usefulness > of the procedural APIs for the Calendar resources. It makes little to > no sense to have it as it brings nothing in comparison to the OO > version. > > I know we could have it to be consistent with other part of the intl > extension but ... > Well, it's mainly a matter of consistency. Every other part if the extension exposes, at least, a procedural API, and most of the time also a OO API. So having only an OO API would be unprecedented. As for the usefulness, I agree it's very little, but the same could be said of the OO API (though the procedural API is, in fact, object oriented and the syntactically OO API is a better fit). Nevertheless, many people actually prefer to use the procedural API. In fact, including two APIs implies some non-trivial work, because you have to declare the functions in two function tables, the arginfo must be different, you have to test both, etc. But since it's already done, the only issue is some extra memory and MINIT work required. In sum, I don't think it hurts much and it helps the extension stay consistent. -- Gustavo Lopes