Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79298 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1897 invoked from network); 28 Nov 2014 22:59:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2014 22:59:46 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.181 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.181 mail-pd0-f181.google.com Received: from [209.85.192.181] ([209.85.192.181:43667] helo=mail-pd0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/16-59154-16EF8745 for ; Fri, 28 Nov 2014 17:59:45 -0500 Received: by mail-pd0-f181.google.com with SMTP id v10so2020420pde.40 for ; Fri, 28 Nov 2014 14:59:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=NaP7o9mzq8+F3feP/Cu1isgJVWVX0J2jhURzkgspJK4=; b=zni68Jd8TuDBJ3VaYEm25Sq3mk51HsSDG6MQddJYFGqq8zeVKjW8YGQvM898qsRx3Q cH7Wg4MrcvgDL15EEAcUao6LUjJKACyAAj4Y0jOdDiqAyrZNRLk1LF5ziOI0gcjjTA2u 1t1ECKvIbwwS+aN0Q20ZEBGxBdQqqVePmH4OGwSkoHRjJ06AJsOc1M4GAkwl0o+Itw1D cG58maj/WX6un+yPkGnHyVGIKYc5CXqE6GMGNTh1Pq3UGIHJzde9C149KgXIB6fFuroi u9YPTx0NFdunmuT2JQmKbjD5aj+XdsZ98fLFNL0QqwTyCxbykv7C7CU5DJBU4CNDsZwm 3xDA== X-Received: by 10.68.203.195 with SMTP id ks3mr77732047pbc.104.1417215582542; Fri, 28 Nov 2014 14:59:42 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id ml5sm10922219pab.32.2014.11.28.14.59.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Nov 2014 14:59:42 -0800 (PST) Message-ID: <5478FE5B.8050803@gmail.com> Date: Fri, 28 Nov 2014 14:59:39 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Carlos Rodrigues , internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Static functions Vs Nonstatic functions From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > It confuses programmers that came from other languages, prevent APIs from > having meaningful names on static methods and have no other benefit than > supporting PHP 4 code. I think this notion of "confuses programmers" sometimes goes too far, and this is one of the examples. PHP prides itself about having low barrier to entry, but that doesn't mean you can refuse to learn anything at all about it and PHP should change to match that. There's nothing wrong in having static and non-static functions in the same namespace, and many languages do the same. Some do not, so you should just remember PHP is the one which does. -- Stas Malyshev smalyshev@gmail.com