Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52006 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38627 invoked from network); 25 Apr 2011 11:17:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2011 11:17:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=alessandro.nadalin@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=alessandro.nadalin@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.177 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: alessandro.nadalin@gmail.com X-Host-Fingerprint: 209.85.216.177 mail-qy0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:33751] helo=mail-qy0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/8D-22678-D4855BD4 for ; Mon, 25 Apr 2011 07:17:33 -0400 Received: by qyl38 with SMTP id 38so1233654qyl.8 for ; Mon, 25 Apr 2011 04:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=t7poyghpmTjKjB4MKl9TyU+8SqpzoGDu4H4zRShs1pw=; b=R0cWmnw+kz43eaFAV2SKloqwGzOzXMYLmqQGZ5i47mUN7cOoraTtBQYH7KTkaC1tGC uJ5ia9acLJ3bIwSP4wVMmyzxuNu49jH4m+PCivsN1xELkwdWPPXyo8kFUDsOon82Aei0 Wy6oE3X93D2VCRmtpF+tf7wGeR0B/NasEo558= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=atyh7am4WaCRIAhWjfWtrkt2DObBle1eE8nmIRcnbiEMgcCCO5a1WQ0q7JBAYFvSiM HYudYnhYkxpMx3mQ11SzQWqpmTzubbtcFZvEnPfFJtggY9GMe2P6KUu+Lg8ChuAV6akg zcuXtvq0bnlo37d3P7/buUwt8a6bn/gxYaM0s= MIME-Version: 1.0 Received: by 10.229.127.212 with SMTP id h20mr2613532qcs.78.1303730250942; Mon, 25 Apr 2011 04:17:30 -0700 (PDT) Received: by 10.229.241.209 with HTTP; Mon, 25 Apr 2011 04:17:30 -0700 (PDT) In-Reply-To: <4DB54D0F.7010601@thelounge.net> References: <5870D50E38AE4374833F83A59ABFB59E@gmail.com> <4DB4847B.3080004@gmail.com> <20110424202353.GC21102@crousti> <4DB54D0F.7010601@thelounge.net> Date: Mon, 25 Apr 2011 13:17:30 +0200 Message-ID: To: Reindl Harald Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Call non-static method staticly raise E_STRICT, but why call a static method instancely won't From: alessandro.nadalin@gmail.com (Alessandro Nadalin) Hi Harald, >> >> I can see your point, but I think we should drop this "feature" not to >> let developers have N ways of doing the same things: > > why should ANYTHING be dropped affection backward compatibility? > >> if you declare a method as static, you should be able to only call it >> with a static call, not hrough an object. > > that is a opinion, but not enough to damage BC I think this should be the subject to talk about, whether or not this is something we accept to break retro-compatibility for. > >> PHP usually lets you do the same thing in a few ways, and that's a bit >> frustrating > > there are so naby different woman and cars out there and that's a > bit frustrating - you know what i mean? definitely not The main point is to force developers to follow some practices, like when you type-hint a core method of your framework (just an example here) others can extend, instead, for example, of doing class-oriented programming. > >> because we should force some kind of best practices for >> the language: not .advise, but *force* > > maybe you are using the wrong language if this is your opinion? > nobody says "stop selling guns because somebody can shoot in his foot" That's why in lots of countries you should demonstrate to the competent authority that you are able to manage a gun in order to get it :) > > peacefully talking, no need to be such aggressive -- Nadalin Alessandro www.odino.org www.twitter.com/_odino_