Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68500 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51119 invoked from network); 13 Aug 2013 16:12:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2013 16:12:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.43 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.212.43 mail-vb0-f43.google.com Received: from [209.85.212.43] ([209.85.212.43:53627] helo=mail-vb0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/E8-06453-9FA5A025 for ; Tue, 13 Aug 2013 12:12:41 -0400 Received: by mail-vb0-f43.google.com with SMTP id h11so6755602vbh.2 for ; Tue, 13 Aug 2013 09:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Frzc7Sp4G+UcpWLev1Oszs4NV4Aud5uWsawJcxVKE38=; b=rU44DvVqddmUM5f1xyBfpKOhyKxjfDqpTfG4NlwpyMncXIWvd0erxsbA0hkbyp3Q3B 9YZe0ZdBu8uLYQPzWXeaojmpzFQdoV2jf2oIQqdGl+gQ0mapLL7cFYx2auH2Q2yYv4/p d8YuVrmLcJoulaVCqwJy8boMCFnFHGMy7n2zWAk1PbX07nVwS+nqafdjh/QjDVlnbe53 prB9ik934mM1BPJP+R0W8vakx+lPyNyBWH7y/PRpfQctwsx2Q0KBmZ9S39YZBFT41Z/D fNhaVZKOfi5zNvpBYfCTOIDn0nJwQShF5oYZIdyP44u1yrQSdyjyBKC/ejbZR5vgo5b4 PpAA== MIME-Version: 1.0 X-Received: by 10.58.108.8 with SMTP id hg8mr5095620veb.6.1376410359159; Tue, 13 Aug 2013 09:12:39 -0700 (PDT) Received: by 10.58.94.201 with HTTP; Tue, 13 Aug 2013 09:12:39 -0700 (PDT) Date: Tue, 13 Aug 2013 12:12:39 -0400 Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1130cec885e72c04e3d68271 Subject: [RFC] Constant Scalar Expressions From: ircmaxell@gmail.com (Anthony Ferrara) --001a1130cec885e72c04e3d68271 Content-Type: text/plain; charset=ISO-8859-1 Hello all, I'd like to propose a new RFC for 5.NEXT: https://wiki.php.net/rfc/const_scalar_expressions This allows for defining constant expressions which are resolved at compile time. for example: const FOO = 1 + 1; static $bar = 1 << 2; function foo($a = 1 | 2) {} class foo { public $bar = 1 << 2; } Thoughts? Anthony --001a1130cec885e72c04e3d68271--