Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83290 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65803 invoked from network); 20 Feb 2015 11:43:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2015 11:43:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=cryptocompress@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cryptocompress@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: cryptocompress@googlemail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:57435] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/A1-54878-1ED17E45 for ; Fri, 20 Feb 2015 06:43:31 -0500 Received: by mail-wi0-f170.google.com with SMTP id hi2so5912220wib.1 for ; Fri, 20 Feb 2015 03:43:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=5exgWoCJ8TBZWyJ706SNn3x+GGgf9+R7Na17eNsMZ5Y=; b=RLKL6BoBPjPAszFGKRYIMs5zEXgYzydAPhwAMocP1lNRFYW0UZ4nEkvIU33cs/Y8SN 9nnWcx7RKofs/8K+WT8QwB9ZJWGehwnl508Uvudugry/4EQxo/PDRMlSYZaOlwp5gl+K 92oL35OsE2H5OAc65++41CIK110l4GUmms4DrXW3HeQ3Kc7OwfX7UhlPs2E/fJ+LeRCq nARpIPDPAg7HaTLFy+pdy1C2GSIN7Xz9eTGszKWYUySuYwIB4ftjtzK85F9DTZlKbrN7 mpSI97cwgmjqOzI20h3E6uLp5NVRXwXkS2tmSH93LJTGGT6bd1uCslFXdljIbgTwzFlu gz9Q== X-Received: by 10.194.85.129 with SMTP id h1mr18101485wjz.147.1424432606582; Fri, 20 Feb 2015 03:43:26 -0800 (PST) Received: from [192.168.1.115] (mnch-5d858289.pool.mediaWays.net. [93.133.130.137]) by mx.google.com with ESMTPSA id dt7sm1996319wib.19.2015.02.20.03.43.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Feb 2015 03:43:25 -0800 (PST) Message-ID: <54E71DDB.7040806@googlemail.com> Date: Fri, 20 Feb 2015 12:43:23 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: PHP Developers Mailing List References: <02a101d04af9$507484f0$f15d8ed0$@php.net> <02ff01d04b72$abae34a0$030a9de0$@php.net> <032801d04b8d$8ff3dce0$afdb96a0$@php.net> <54E50DE1.3080402@googlemail.com> <03a901d04bd0$5c79eec0$156dcc40$@php.net> In-Reply-To: Content-Type: multipart/alternative; boundary="------------080609040602040503030903" Subject: Re: [PHP-DEV] Annotations in PHP7 From: cryptocompress@googlemail.com (Crypto Compress) --------------080609040602040503030903 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Am 19.02.2015 um 08:14 schrieb Dmitry Stogov: > On Thu, Feb 19, 2015 at 2:12 AM, François Laupretre > wrote: > > If I understand Dmitry correctly, this would be stored as the > compiler internal representation of the 'new Entity("foo")' code, > but this wouldn't be executed until an external mechanism decides > to do so. So, this is PHP code and it is compiled and stored in > memory besides the function opcodes, but not evaluated. > > > Right. It's even not compiled into bytecode, just parsed into AST and > then associated with function/class/property like doc-comment. > > You're right, it contains code. The key point is that this code > will never be executed nor used in any way until an external > mechanism decides to retrieve and evaluate it. That's metadata. > > > Right again. Hi, thank you for the answers. I understand the "anything is possible" argument and would like to see/push future ideas in direction of domain-specific languages (DSL) opposite to another aspect-oriented programming (AOP) extension as in current examples. Sorry for offtopic. Thanks cryptocompress --------------080609040602040503030903--