Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71963 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11614 invoked from network); 2 Feb 2014 02:32:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2014 02:32:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.192.181 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.192.181 mail-pd0-f181.google.com Received: from [209.85.192.181] ([209.85.192.181:44984] helo=mail-pd0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/8E-30967-A3EADE25 for ; Sat, 01 Feb 2014 21:32:27 -0500 Received: by mail-pd0-f181.google.com with SMTP id y10so5653253pdj.40 for ; Sat, 01 Feb 2014 18:32:24 -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:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=VOY0WIYnnQAo/7H4jj5O4Z/ReEp3dU2pLyLKi+Q9GeI=; b=ATRl5WNWSNfe9DfoE2gtosHDUBL/mzHDvsiBGqzj8SfQ4AmcdbQZMZieLcDK9Sv8OP DfQwwShmkthHcrbLxScKECg17SS4eKJ1H/QDzLh+OPi7gsCzjOwqGWMx4yi+afZ76uVP Vjrwhym6zB3ELwdN/OvsfvU4/jzm9GWB4429YjRYCqyA4H2yKTbdS4XLIwgJuLalbquI ITde5xnhnrXnjFy2Uy+J+ilc+v8Jvyh/p5mgGcJ84zFJw+dT1J+hzsFZ+Tkju35xbPQg 2yssczt5NTwArxkgh/lKbwk18jHPHNOITvwxHD1Afu7ubLCCUMLFqwQum2RnYhUkxnT0 gFXw== X-Gm-Message-State: ALoCoQnTkd8PbPESQfQoHsH/tDGE6tkNxRvIMTWbZGCKOnMT1lGtnhRqXB1dDTsWejxxTxxAKt7G MIME-Version: 1.0 X-Received: by 10.66.142.107 with SMTP id rv11mr29598621pab.17.1391308344104; Sat, 01 Feb 2014 18:32:24 -0800 (PST) Sender: php@golemon.com Received: by 10.70.77.164 with HTTP; Sat, 1 Feb 2014 18:32:24 -0800 (PST) X-Originating-IP: [173.252.71.189] In-Reply-To: References: Date: Sat, 1 Feb 2014 18:32:24 -0800 X-Google-Sender-Auth: txJKtUSdlG0rtTp5mDLB6bOzlAQ Message-ID: To: Rasmus Schultz Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] constant scalar expressions From: pollita@php.net (Sara Golemon) On Sat, Feb 1, 2014 at 12:11 PM, Rasmus Schultz wrote: > Did you consider supporting non-scalar values? > Did you consider permitting e.g. function calls in declarations? > And finally, and perhaps most importantly, did you consider lazy (late, > on-access) evaluation of expressions? > Short answer to this is that those types of cases could (and perhaps should) be covered by property getter/setters. We *could* bake it into the syntax, and it would certainly make the syntax for PHP scripts look cleaner, but as a first step focusing on constant scalars only allows us to take a step forward and reevaluate to see where we are after a version. -Sara