Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68509 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15760 invoked from network); 14 Aug 2013 09:46:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2013 09:46:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.47 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 209.85.215.47 mail-la0-f47.google.com Received: from [209.85.215.47] ([209.85.215.47:32817] helo=mail-la0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/F1-06453-5E15B025 for ; Wed, 14 Aug 2013 05:46:14 -0400 Received: by mail-la0-f47.google.com with SMTP id eo20so6636457lab.20 for ; Wed, 14 Aug 2013 02:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=bwkUuq2+SU/LxBA2XP5/0p4BypxOKuI0tD47CQ7OntI=; b=NkZqp9AJxciMGH0Amhs4cKx+XScD15JqUjs4p3mLL3s1PYAzf229stZeQfwgW9Vc5X yJ0ziPnI6dhXLUk4bXjm2fiKiqUPoXbctHu8WYx8PZ7T1xQl1mVLRpp7YEIMK5AD80GC p/GUHR3TNphokvIL/l/cbYartK8+w1TSJDkBlIpiXeeg81MUC9m6runH2Q4VvXwixlPn 0sQtg8l4+F8Ztj9fKZVZre2sZABVR6OQyxRnsjuKrhFDMXqDEKyMr9Jq597kg4D8L6P0 UWf/tMXqGBYd5XH2G5C4RMGgHx0jw/gpYg+oMYh7j53WVf1mMbz+eEENyitfW+x0VFwg wV9g== MIME-Version: 1.0 X-Received: by 10.112.55.140 with SMTP id s12mr802033lbp.42.1376473570898; Wed, 14 Aug 2013 02:46:10 -0700 (PDT) Sender: mike.php.net@gmail.com Received: by 10.114.184.19 with HTTP; Wed, 14 Aug 2013 02:46:10 -0700 (PDT) In-Reply-To: <520B4772.8090701@sugarcrm.com> References: <520B4772.8090701@sugarcrm.com> Date: Wed, 14 Aug 2013 11:46:10 +0200 X-Google-Sender-Auth: F32usB-rz58Xc2RpHBxj_uPVaQQ Message-ID: To: Stas Malyshev Cc: Julien Pauli , Anthony Ferrara , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Constant Scalar Expressions From: mike@php.net (Michael Wallner) On 14 August 2013 11:01, Stas Malyshev wrote: > Hi! > >>> https://wiki.php.net/rfc/const_scalar_expressions > > I like the idea, but absence of constant support makes this thing much > less useful, as you can't do things like: > > public $angle = M_PI/2; > > I think this is one of the reasons this idea was never implemented - > because without constant support you're limited to doing things that are > quite obvious and trivial. Yeah, I'm generally +1 on the idea; constant support would be awesome though! -- Regards, Mike