Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59513 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14684 invoked from network); 9 Apr 2012 16:11:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2012 16:11:52 -0000 Authentication-Results: pb1.pair.com header.from=tom@punkave.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tom@punkave.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain punkave.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: tom@punkave.com X-Host-Fingerprint: 209.85.215.42 mail-lpp01m010-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:60338] helo=mail-lpp01m010-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/00-14133-74A038F4 for ; Mon, 09 Apr 2012 12:11:51 -0400 Received: by lahl5 with SMTP id l5so3690473lah.29 for ; Mon, 09 Apr 2012 09:11:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=EI3unrqdmI0P93Xs09P6zFdikgxwYERzHxaBPrzImx8=; b=mZlZPeRfUi8fdj9bdw72QFJ2HsrX0mCsUPaeMni4h7JC3WATFVo3HXJ4SmAZ7zfIOV xJgIfiS9dJ9pM3EZ/td3PI8cROHYayR3UiWhY2xfD5A+Vn2Npaq18M5otGid2ELKmQFr J1wb5DHnITYEsQimxETsY3mJwZYtCiBZCjarE5iFeTGTL8XMbdrbF5hjzocQktNB/gFT et4OjfHOAutCTtuk59/iRNVsLursP/fxcGki9rwe3kpjgccyqnpzDVyb6JqEi7JSTq3G +L9MjT07ljJY/96jgCVXHAJKRsFl5gv7QcHi2ghFThyPIdkj6BWoe/Xc+9fcfipi2VpD VWBg== MIME-Version: 1.0 Received: by 10.152.130.167 with SMTP id of7mr12155947lab.36.1333987908483; Mon, 09 Apr 2012 09:11:48 -0700 (PDT) Received: by 10.152.19.106 with HTTP; Mon, 9 Apr 2012 09:11:48 -0700 (PDT) In-Reply-To: References: Date: Mon, 9 Apr 2012 12:11:48 -0400 Message-ID: To: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQl3SKotskXTQLV+lzYnxTUydEFsC5gnhMePfjpoGK69epSq2NO2mbbwyhIyFPSRafEPo7NZ Subject: Re: [PHP-DEV] Object oriented page templates in PHP From: tom@punkave.com (Tom Boutell) There's a reason I didn't try to kick this out as a fully formed RFC (: The choice of @ is a nonstarter, yes. I forgot that wrote: > -1. > > PHP doesn't need more magic. > > On Mon, Apr 9, 2012 at 4:53 PM, Nikita Popov > wrote: >> >> On Mon, Apr 9, 2012 at 5:10 PM, Tom Boutell wrote: >> > What if PHP supported a short tag for calling a method of $this? >> > >> > Then one could write: >> > >> > >> >> A big -1 on this. >> >> If you want to roll your own template syntax, just do so. It's not >> that hard to run a quick str_replace('', >> $code) over the template. >> >> Especially consider that @ is already used for error suppression, so >> code that previously just wanted to suppress some errors will suddenly >> try to call class methods (which obviously will lead to fatal errors). >> >> Nikita >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com