Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84294 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95540 invoked from network); 4 Mar 2015 16:47:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Mar 2015 16:47:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.192.170 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.192.170 mail-pd0-f170.google.com Received: from [209.85.192.170] ([209.85.192.170:39405] helo=mail-pd0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F9/45-56703-70737F45 for ; Wed, 04 Mar 2015 11:47:04 -0500 Received: by pdjy10 with SMTP id y10so58758233pdj.6 for ; Wed, 04 Mar 2015 08:47:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=8my9FLcWIshdPaoHHQWTHCu2reCHrIgnH5P2+a/Je84=; b=KL3wbKOf4CEx9FQXmQNrVEyDan1wmK8Km2zE/Cg/fSycWjxMFX5ame6eKp723npRfx +NxfI5v7gYf2wL+81v+nyt0ltBEU8PcyHB3NhGRSzsbRp37eCR4GO+D1P2lYh06O69OY sf4igj7u2+kZDQ69MsA+/4153ehkuJtp8Y+nVjTwo5E/5k81B1ADd8G4eKL75aqhngWe kRw8hDOGN3bTgI7kOi51DfqNi9z+2ynW+joAor/54SnNbE8B6GQlBWqLPgelp10+CdkQ M83Jo2Ud8fMcexMYZwg4gFOKuRsDKUiu333bBh2/EXulFKWyff7TuYmD/0gBeZoUCgTX +OIQ== X-Gm-Message-State: ALoCoQkJhlfqr3aGW4rOyjw4+b2mjLV4wb8ZWAnyuf6itwLBCy9QYFyIKcecv8+qch8hGSU/ZjBh X-Received: by 10.66.169.202 with SMTP id ag10mr8235039pac.19.1425487620627; Wed, 04 Mar 2015 08:47:00 -0800 (PST) Received: from [192.168.200.14] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPSA id bt2sm4579085pad.12.2015.03.04.08.46.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Mar 2015 08:46:59 -0800 (PST) Message-ID: <54F73702.9050806@lerdorf.com> Date: Wed, 04 Mar 2015 08:46:58 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "guilhermeblanco@gmail.com" , Trevor Suarez CC: Yasuo Ohgaki , "internals@lists.php.net" References: <54F4E93C.80206@gmail.com> <54F4EBEC.2090702@garfieldtech.com> <54F4F3FC.6060501@fischer.name> <54F4FDFB.8010701@lsces.co.uk> <54F5895D.3090002@gmail.com> <554F0C3F-770F-4694-A5AB-FDC54FCCBF00@gmail.com> <54F72360.6000702@lerdorf.com> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dntliGVR6JHhs6XlADKwsjQT3os8XDM4E" Subject: Re: [PHP-DEV] Consistent function names From: rasmus@lerdorf.com (Rasmus Lerdorf) --dntliGVR6JHhs6XlADKwsjQT3os8XDM4E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 03/04/2015 08:26 AM, guilhermeblanco@gmail.com wrote: > @Rasmus: >=20 > I don't see what's the problem of aliasing functions for the next 1-2 > majors, deprecate the inconsistent one in the following and remove late= r. As far as I am concerned str_len() would be the inconsistent one. Like I explained previously, these function names for the most part, aren't ones I made up. They come from the underlying libraries and whether you personally value that or not, there is an actual reason for their names. Many of them are iconic entities on their own, at least to people with experience outside of PHP. Terms like "recvfrom", "getenv" and yes, "strlen" are well-established names that should not be split up into "recv_from", "get_env" and "str_len" due to some sort of arbitrary consistency/purity idea any more than I should have my name changed to Ras_mus. As many people have already suggested in this thread, if we are going to do something here it has to bring actual value and can't just be a bunch of aliases littering the global namespace further. -Rasmus --dntliGVR6JHhs6XlADKwsjQT3os8XDM4E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlT3NwIACgkQlxayKTuqOuBlfwCcDPpwSiKuqtIHPLcZULsFq8hE 2HUAnj+pqaD9XAE0vtwG2q96tmWVUnQg =4DCK -----END PGP SIGNATURE----- --dntliGVR6JHhs6XlADKwsjQT3os8XDM4E--