Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51133 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82999 invoked from network); 25 Dec 2010 14:14:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Dec 2010 14:14:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=mathiasgrimm@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mathiasgrimm@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mathiasgrimm@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:55230] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/10-16849-16CF51D4 for ; Sat, 25 Dec 2010 09:14:58 -0500 Received: by vws11 with SMTP id 11so3012690vws.29 for ; Sat, 25 Dec 2010 06:14:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=HvVmnSsVWhQXhSs6cHgIxfHt2NAvK1fq9eS5xHIQyxY=; b=IAfahQZokKzKbld6cO8KzMzMlmSqHrkZd5tjHZpj6BI+hWENcaZk/6HMOX6FEg95p/ 25tmIWFyWRH03pAuEozaj3lssCKD5ktQeg0QeVYrRRgzUanR0i75fvJMOLmc/gdB1mhz CL0C6ooiExeiJhh/fF0Q4EQSmsxaCIngFNYtQ= 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=Bufc2Rb7kLtvBtL4oZN6pVF6yCIUFuwLYnRlbpC8mw/0ihzbeM/GC9HHG2ItBHJriA Q0erRHZPq4+4/cHp4SOMSoMxXzkJ9gTNtXIeghcD/8B6gnc6meB0rclmRS/Yxd9yzEU8 GtXc+7kSa6OrzitvJ0ksUiP0OfI+dVgvNLqlA= MIME-Version: 1.0 Received: by 10.220.186.200 with SMTP id ct8mr2529676vcb.256.1293286494708; Sat, 25 Dec 2010 06:14:54 -0800 (PST) Received: by 10.220.172.132 with HTTP; Sat, 25 Dec 2010 06:14:54 -0800 (PST) In-Reply-To: References: Date: Sat, 25 Dec 2010 12:14:54 -0200 Message-ID: To: =?ISO-8859-1?Q?Nicolas_A=2E_B=E9rard=2DNault?= Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=00235445ba821c252204983cbac0 Subject: Re: [PHP-DEV] RFC - MACRO From: mathiasgrimm@gmail.com (Mathias Grimm) --00235445ba821c252204983cbac0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You never know me. php 4 doesnt have namespace, it was just an example. zend framework dont use namespecaes yet... and classe names get longer for example. a think that macros in the framework, not in the user (programmer) space ar= e usefull sometimes. as i sad before.. RET_IF_ERR is very clean and anyone ca= n understand it. as well as framewrok methods need to be understand, some macros will too 2010/12/24 Nicolas A. B=E9rard-Nault > This has been brought up countless times and has always been rejected > (browse the archives if you aren't convinced). > > Anyhow, I just hope I never have to maintain code you write in this > fashion. Pre-compilation macros are very out of character in the dynamic > languages paradigm and I doubt they'd be useful in any case. The examples > you gave convinced me once and for all that this is a very=B2 bad idea. > There's a reason why no modern language uses three letters tokens for com= mon > statements, I'll let you guess what it is. > > Anyhow, merry Christmas. > > P.S.: SCOPE_CLASS ? Have you ever heard of namespaces ? > > On Wed, Dec 22, 2010 at 12:11 PM, Mathias Grimm w= rote: > >> I want to request a C/C++ feature that i think is good. >> >> MACRO >> >> > MACRO('PF','private function _'); >> MACRO('SCOPE_CLASS','class MyProject_'); >> >> class UseMacro >> { >> PF preSave($object) >> { >> //... >> } >> >> } >> >> SCOPE_CLASS Internal >> { >> >> } >> >> I don know if there is a RFC for this feature. >> > > > > -- > Nicolas A. B=E9rard-Nault (nicobn@gmail.com) > --00235445ba821c252204983cbac0--