Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65218 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33838 invoked from network); 26 Jan 2013 17:35:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2013 17:35:22 -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.214.172 as permitted sender) X-PHP-List-Original-Sender: florinpatan@gmail.com X-Host-Fingerprint: 209.85.214.172 mail-ob0-f172.google.com Received: from [209.85.214.172] ([209.85.214.172:42824] helo=mail-ob0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/25-33516-7D314015 for ; Sat, 26 Jan 2013 12:35:21 -0500 Received: by mail-ob0-f172.google.com with SMTP id tb18so1252917obb.3 for ; Sat, 26 Jan 2013 09:35:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=80UI5glSVCbKoucERvLwSHUrfodNst1LSRsk9xJoxwg=; b=ZWwLhCyjvHbHKi5BkCn7kN4tK+YVxq1PhWa+nk91sAvdc4LWbZhNLBkgAqszdqTet1 U+IuZdF/ymCc/a1N40EHKqK0dyd/BMaSq5hVvW23+2qsdltuvWCRBKTwqnx91zGIRJKY oQ0zDQS6sJcyNkGfXiNaalIn5T8k/sW+1B+JPbsM/ohIeMpJqvruoPZbCYgP7QRhw2kM LwIBF7K67yb3CRzNuWg/2cs6BWZUFB/4snQwwGZuiMYw3OyB+VmfDEH1o+2qTmlni/uy 66I4b6J/4oWwbLzVVwoDZcZD51DQF6wS5lr9ofPne/91gmHrwdlbbzQ+pigTwzako/W0 cT5Q== X-Received: by 10.60.1.232 with SMTP id 8mr7349246oep.30.1359221716707; Sat, 26 Jan 2013 09:35:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.171.71 with HTTP; Sat, 26 Jan 2013 09:34:46 -0800 (PST) In-Reply-To: References: Date: Sat, 26 Jan 2013 19:34:46 +0200 Message-ID: To: Kalle Sommer Nielsen Cc: =?UTF-8?Q?Damian_Tylczy=C5=84ski?= , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] I think that "Function naming inconsistency" bug deservers more attention From: florinpatan@gmail.com (Florin Razvan Patan) Hi, Everyone here forgets that there's a little certification run by some guys named Zend that factor in some of these things as well. That's the point of not having consistency? Checking if some have better memory that others? Also, I suppose that everyone can afford to look up things on the PHP manual when doing debugging on some crashed remote service via CLI only access. Now, on a nicer tone. Consistency across function name/parameters would help out both new people that learn the language as well as leave out one point when compared to the other languages. Sure, there's no point in changing things just for the sake of it but I don't get it why this couldn't be a viable option for PHP 6 for example, which is a major release. It would definitely help out new users and get some bonus points while doing so in order to close the mouth of those arguing that PHP is so inconsistent in naming things. Phil Sturgeon had a nice idea on his blog, http://philsturgeon.co.uk/blog/2013/01/php-6-pissing-in-the-wind which I think could very well apply to PHP and maybe something like this could be done by someone with less C/PHP internals knowledge that some other features. If that's the case and all we need is someone to do the changes, then I could level up my C knowledge and help out if no one else is willing to do it. I'd dislike for it to be rejected with reasons like: - but it doesn't bring anything new; - it doesn't help us with anything; - it doesn't solve real problems; - the current functions reflect the underlying functions used. I've been a PHP user (developer) for a couple of years now and I really don't care what's the parameter order for the functions that PHP use to help me out getting my job done; - perfection ain't good. Best regards. ---- Florin Patan https://github.com/dlsniper On Sat, Jan 26, 2013 at 7:13 PM, Kalle Sommer Nielsen wrote= : > Hi > > 2013/1/25 Damian Tylczy=C5=84ski : >> I've seen discussion on reddit >> http://www.reddit.com/r/PHP/comments/174qng/lets_make_phps_function_name= s_consistent/ > > There is one really clean solution to this "problem" for the > consistency Guys that tend to complain about PHP endlessly; write the > aliases in PHP that can be included, which can be considered just like > using one of the frameworks thats filled with functions, it can be > written quite fast and you can even use auto_prepend_file to include > it in all scripts. > > As said in countless mails above, there is no gain for breaking BC due > to "perfection". > > -- > regards, > > Kalle Sommer Nielsen > kalle@php.net > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >