Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41721 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 482 invoked from network); 6 Nov 2008 12:35:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2008 12:35:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=mikko.koppanen@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mikko.koppanen@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.134.184 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mikko.koppanen@gmail.com X-Host-Fingerprint: 209.85.134.184 mu-out-0910.google.com Received: from [209.85.134.184] ([209.85.134.184:64430] helo=mu-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/6D-35522-3A4E2194 for ; Thu, 06 Nov 2008 07:35:48 -0500 Received: by mu-out-0910.google.com with SMTP id i2so553787mue.3 for ; Thu, 06 Nov 2008 04:35:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=3AKG1XdwcfznT+LOYaZbylNwQgZMtjDVrdDP0qb3Lsg=; b=Id/7WGHpjnESzift6C439b438X0lQo1ksRQEuWwHkAnQRd/pyVNkzGs2u2PZhhJjRf nKTrtwQNY3zPb4PQMQ7EuK8+XEI0+Q5/Vbaa0b4jHvLCM8aFTDefCudojdKA8hvOiYwR oiRG9f56R1Hvvic19JJFFvtnkBwz3LKsTd0Cg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=Zyj5ziwD2AuOzOIl37bjmZIDh/V3HO3ZqCgHdNlbRz+e7EV8kfUpM1DcjZOBEOm8Zw d7hwclhlmAxgAt5cxCw/ZS8aGyR3f1/0DbLx8kURLAIAG47Gw3PBEtY6S8HfCY3yRyiz J7bkn6lVoRdhYhpBAbpK4xrFhiZfT2Hbxu3Zk= Received: by 10.180.224.13 with SMTP id w13mr645958bkg.160.1225974945217; Thu, 06 Nov 2008 04:35:45 -0800 (PST) Received: by 10.181.7.17 with HTTP; Thu, 6 Nov 2008 04:35:45 -0800 (PST) Message-ID: <8cf711460811060435p238fe874n7a690703661096d3@mail.gmail.com> Date: Thu, 6 Nov 2008 12:35:45 +0000 Sender: mikko.koppanen@gmail.com To: Dan Cc: "Steph Fox" , internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4EA88C3A8A2747989925A5D21448FCE7@pc> <200811052154.29537.larry@garfieldtech.com> <98b8086f0811060150p2fb0312dj66896cb227c871ec@mail.gmail.com> <007301c93ffe$f4b5ad80$3ffc1f3e@foxbox> <029101c94004$d4564440$7d02ccc0$@com> <013b01c94007$b66d60a0$3ffc1f3e@foxbox> X-Google-Sender-Auth: 1305d4bff8b4d6ca Subject: Re: [PHP-DEV] Call it: allow reserved words in a class or not? From: mikko@ibuildings.com ("Mikko Koppanen") On Thu, Nov 6, 2008 at 12:15 PM, Dan wrote: > Okay, I'm not going to sit and argue it... but to anyone looking at these > issues from outside the PHP internals world (like I am), that argument is > worthy of ridicule. What argument? Due to top-posting you're kind of killing the ability to follow the thread. > PHP may be a hybrid language, but the fact is you're implementing object > oriented functionality, and as such should be implementing it in a way that > follows de-facto standards in object oriented language design. I should be > able to overload your internal array object, and yes, arraysshould be > objects. Wouldn't this mean that also primitive types such as integer and string should be objects? Doing something like this would break about all the code out there without a major gain. One of the strenghts of PHP is that it balances well between procedural and object oriented approaches. There is ArrayObject, ArrayAccess etc for people who wish to use OO and array for the people who don't. > Javascript would be a prime example of a non-standard object oriented > approach, and yet that still manages to support the basics in a way that > make sense. > I think you are missing a point here. PHP is not Javascript or .NET. -- Mikko Koppanen