Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51132 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28377 invoked from network); 25 Dec 2010 00:28:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Dec 2010 00:28:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=nicobn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nicobn@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: nicobn@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:44012] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/14-27113-7AA351D4 for ; Fri, 24 Dec 2010 19:28:24 -0500 Received: by wyb39 with SMTP id 39so7197152wyb.29 for ; Fri, 24 Dec 2010 16:28:21 -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=7PyFJwD3IxIZba1M6BWDFUxnwuz9OLXGoo4frEa+TVk=; b=WqFhBPpxlSbNnBy4Mj4m+GMzZcBaz40g/rIhIzxWUXN4kc0UOjI4ODUpeCTTxExKJ8 QWFc+vEKhpfg9gI787gbIGP7KoQ+21hCUL6SaDGAz9SRuV4OD4WEeZ6aHPd8tmkYv+Dv o2CRPoHLfZyJTsm4xlcOViqaEPbV3qdzMQZdc= 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=XvEYekiX5pecLzogajrriSFME4pQXz46uOT2a6eqKVLxcX+JJEqJvucY4NgzlDAbIF OZQm0oq/Se8MVCS8CU+YhOGUsw8TU1gw7/rgWkssTzS5JCXI34JfVFxfVOlPBjc5HOq1 OjELHIOOXcpcjh3LbyYn+NUHCg7OwHMhh3Ik4= MIME-Version: 1.0 Received: by 10.216.213.15 with SMTP id z15mr10683857weo.61.1293236901229; Fri, 24 Dec 2010 16:28:21 -0800 (PST) Received: by 10.216.163.65 with HTTP; Fri, 24 Dec 2010 16:28:21 -0800 (PST) In-Reply-To: References: Date: Fri, 24 Dec 2010 19:28:21 -0500 Message-ID: To: Mathias Grimm Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016e6dab18a1bb6150498312e85 Subject: Re: [PHP-DEV] RFC - MACRO From: nicobn@gmail.com (=?ISO-8859-1?Q?Nicolas_A=2E_B=E9rard=2DNault?=) --0016e6dab18a1bb6150498312e85 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 common 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 wro= te: > 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. > --=20 Nicolas A. B=E9rard-Nault (nicobn@gmail.com) --0016e6dab18a1bb6150498312e85--