Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58135 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68098 invoked from network); 27 Feb 2012 15:20:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2012 15:20:31 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:44269] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/57-40985-E3F9B4F4 for ; Mon, 27 Feb 2012 10:20:30 -0500 Received: by qcmt36 with SMTP id t36so811433qcm.29 for ; Mon, 27 Feb 2012 07:20:27 -0800 (PST) Received-SPF: pass (google.com: domain of ircmaxell@gmail.com designates 10.224.184.74 as permitted sender) client-ip=10.224.184.74; Authentication-Results: mr.google.com; spf=pass (google.com: domain of ircmaxell@gmail.com designates 10.224.184.74 as permitted sender) smtp.mail=ircmaxell@gmail.com; dkim=pass header.i=ircmaxell@gmail.com Received: from mr.google.com ([10.224.184.74]) by 10.224.184.74 with SMTP id cj10mr12254916qab.82.1330356027781 (num_hops = 1); Mon, 27 Feb 2012 07:20:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NJ1boTPiGpx/J08w0Vs0/6YNxStm+bywVsOnh5cZgjU=; b=YES93H1a+P1B0b+9HjMO+HSqAV0poZtCoTTPHJbSsEF2ZeDNPGNrz2I8yHd8GJUfet 5sxJ7/Nb9/M2PHYMC3zSNfGOkBZXG7Y/lfN3SBnQ8LJ+1SBdBjKnoq8uyXdk4qR+ClZt 2GGL3777UYAj5B3Gbfy7RhVo32rlaowstXHNU= MIME-Version: 1.0 Received: by 10.224.184.74 with SMTP id cj10mr10318323qab.82.1330356027727; Mon, 27 Feb 2012 07:20:27 -0800 (PST) Received: by 10.229.166.202 with HTTP; Mon, 27 Feb 2012 07:20:27 -0800 (PST) In-Reply-To: <6d4a9f99bc550c8c673b32cbccc52444.squirrel@www.l-i-e.com> References: <6d4a9f99bc550c8c673b32cbccc52444.squirrel@www.l-i-e.com> Date: Mon, 27 Feb 2012 10:20:27 -0500 Message-ID: To: Richard Lynch Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Object Casting - An Alternative to Type Hinting From: ircmaxell@gmail.com (Anthony Ferrara) > I have to say that no matter how much a luv my OOP, turning every > built-in type into an Object is just a Bad Idea... > > It's a form of bloat on RAM and CPU with minimal added value, imho. > > No matter which way you twist this pretzel: > > -1 Re-read what I had written. I never said to turn every built-in type into an object. In fact, what I was talking about was keeping and preserving the base types as-is. All that I was proposing was adding the ability to cast from and to the primitives. That way you could silently convert back and forth as needed (transparently when possible). So what it sounds like you're -1ing to, is not actually what was proposed... I'm starting to work on a patch for this as a proof of concept... Anthony On Mon, Feb 27, 2012 at 10:08 AM, Richard Lynch wrote: > On Sun, February 26, 2012 9:48 am, Anthony Ferrara wrote: > > I have to say that no matter how much a luv my OOP, turning every > built-in type into an Object is just a Bad Idea... > > It's a form of bloat on RAM and CPU with minimal added value, imho. > > No matter which way you twist this pretzel: > > -1 > > -- > brain cancer update: > http://richardlynch.blogspot.com/search/label/brain%20tumor > Donate: > https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >