Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50919 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43910 invoked from network); 9 Dec 2010 07:44:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2010 07:44:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=quickshiftin@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=quickshiftin@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.45 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: quickshiftin@gmail.com X-Host-Fingerprint: 209.85.214.45 mail-bw0-f45.google.com Received: from [209.85.214.45] ([209.85.214.45:38303] helo=mail-bw0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/43-16752-3F8800D4 for ; Thu, 09 Dec 2010 02:44:53 -0500 Received: by bwz16 with SMTP id 16so2432040bwz.32 for ; Wed, 08 Dec 2010 23:44:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=kf0K5D6sOPG+SqU88TQhKItq5rQdsWSwKb5eZe8xzSo=; b=NMxyQyk86/3K1K/oos0jKFFKVD+nkjWJtCiYD6sYsACFzwq88bogYWF3Y4Ncb9rYDC oUYu2sFbd6nYmucR0aObpHBUpGP5144h5bJ/LyHelQY5EuvFcFYdQMd4+wEjR7yIVm6I mB0Suoc6bt6pnZSmsYr1ObNlz2XjAfqusfyxI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sjl+atDKoja/LWXhYNflY9yJVAebMLfL6t7ryO7MDe+Bh5HDjjV42eSYhD+Yc49tFt ntL/ysuwWKJ8iJJW/TYPieh5b2sexwIMNWvKjMDVpcWE+tWLAZ40QQCPj3khqfIp45CT HdrTsJnCH9bPR53efgJ/eHQz11yP7bPlhYEjo= MIME-Version: 1.0 Received: by 10.204.48.86 with SMTP id q22mr560414bkf.141.1291880687613; Wed, 08 Dec 2010 23:44:47 -0800 (PST) Received: by 10.204.14.133 with HTTP; Wed, 8 Dec 2010 23:44:47 -0800 (PST) Date: Thu, 9 Dec 2010 00:44:47 -0700 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016e6d7e1017a35e40496f569bb Subject: Traits expecting interfaces implicitly leads to expensive runtime checks From: quickshiftin@gmail.com (Nathan Nobbe) --0016e6d7e1017a35e40496f569bb Content-Type: text/plain; charset=UTF-8 Hi, I think traits will lend themselves to frequent runtime checking against the type of class in which they were used. Consider a trait designed for use with an Iterator class; the first thing might be to check the type of $this. do you not think checks like this will be common / messy / performance costly; is there something i'm missing? thx, -nathan --0016e6d7e1017a35e40496f569bb--