Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82828 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98397 invoked from network); 16 Feb 2015 12:12:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Feb 2015 12:12:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 74.125.82.172 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 74.125.82.172 mail-we0-f172.google.com Received: from [74.125.82.172] ([74.125.82.172:33378] helo=mail-we0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/A0-29513-BBED1E45 for ; Mon, 16 Feb 2015 07:12:43 -0500 Received: by mail-we0-f172.google.com with SMTP id k48so28815651wev.3 for ; Mon, 16 Feb 2015 04:12:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=WIS7e1OnwsYSlAg94Yfk3BYLBM1+rhluHs26Vu8Gi84=; b=OThE3XJZIHWh9WQsBO56909WUp5H122dsZAzkSPvQ55EP4CYCN00G1OCgPUU7ORHMs a+6XWZYyBK0VL7W19bCC5OC7zxN//eDoP9UvKgnHMnGe6mtanBEbuVadPNpdL/ARctC2 PqQPbOb/1OWZCc+sZRJLDpRAvq09QvtikFF8yBioMQxpUUKxlPRY2wS/hYXRIeED+wq7 CMB6V1I3MzLjyn4ebJHjRNRNPQSKHepxejI1WEaIhQ8CLV5sDYNgDnp4WOCbxpRi2bT9 253XukZc6xecQ4T1JnCtJ+wgI1hJ9l9PW8XOi9QbI2svzNpI0UGr0elM4bUUVrx4H1cQ 9u1A== X-Gm-Message-State: ALoCoQl75iI0Lfv7KwWFqaAjQKYe+1YA4mezTGWqPJdTSAtQ7ckCEGGikhZkuyxKDF4cDQBBHQBE MIME-Version: 1.0 X-Received: by 10.194.185.68 with SMTP id fa4mr48656578wjc.111.1424088760076; Mon, 16 Feb 2015 04:12:40 -0800 (PST) Received: by 10.194.192.202 with HTTP; Mon, 16 Feb 2015 04:12:39 -0800 (PST) X-Originating-IP: [93.129.131.180] In-Reply-To: References: Date: Mon, 16 Feb 2015 13:12:39 +0100 Message-ID: To: Alexander Lisachenko Cc: Dmitry Stogov , PHP Internals , Nikita Popov , Guilherme Blanco , Pierrick CHARRON , Pierre Joye , Zeev Suraski , Andi Gutmans , Joe Watkins , Yasuo Ohgaki , Sebastian Bergmann , Stanislav Malyshev , Rasmus Lerdorf Content-Type: multipart/alternative; boundary=047d7bacb11eac7b91050f33808f Subject: Re: [PHP-DEV] Annotations in PHP7 From: kontakt@beberlei.de (Benjamin Eberlei) --047d7bacb11eac7b91050f33808f Content-Type: text/plain; charset=UTF-8 On Mon, Feb 16, 2015 at 1:10 PM, Alexander Lisachenko < lisachenko.it@gmail.com> wrote: > > 2015-02-16 14:42 GMT+03:00 Dmitry Stogov : > >> the idea to not evaluate non-constant expressions at all, but just keep >> AST and provide interface to read it. >> PHP extensions should be able to use them as they like. (evaluate or >> insert into AST of function(s), etc). >> >> Thanks. Dmitry. > > > > It's a good decision, userland frameworks, such as Doctrine/Go! AOP/etc > will use this AST nodes and node visitors to provide an extension > mechanism. Strong +1 here for AST nodes. > i think its a bit complicated for userland, although i clearly see the benefit for things like DbC and AOP. but what is the API of an AST node and how does the visitor look like? --047d7bacb11eac7b91050f33808f--