Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71998 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84939 invoked from network); 2 Feb 2014 14:54:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2014 14:54:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@mindplay.dk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@mindplay.dk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mindplay.dk from 209.85.212.53 cause and error) X-PHP-List-Original-Sender: rasmus@mindplay.dk X-Host-Fingerprint: 209.85.212.53 mail-vb0-f53.google.com Received: from [209.85.212.53] ([209.85.212.53:41924] helo=mail-vb0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/DB-30967-53C5EE25 for ; Sun, 02 Feb 2014 09:54:45 -0500 Received: by mail-vb0-f53.google.com with SMTP id p17so3980538vbe.40 for ; Sun, 02 Feb 2014 06:54:42 -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=DhNMxn5CdBFQxocTcc8CMGlIS0xZRqf6ZqKv0sp3f0I=; b=gwVHFYGpTEjijOdFZ6BG3KFNwNfO+N1vnepYw9l9ItfXIgMl2W3LlW0VSQQDpYwuKt PN/9z3v/nx8DPnN2++lyLd0Dql5e7UY4t2W8buEKWcofy3UhglFqHAwEQv23wcu9HcQT 9SWtbDwkXVeHbmwF/Y+zwF+mQbcsMOTTPuZPR1Int2ZTVVZwJajLdBGwlmphn6QNCIBN mfgRhyc60P7B2AUw1IhFE2f9lxHnTg0L+ncaTMy0YrC+oHt+EL1eMcF0b3d5jEoXg3/b bBEmLQqrjWb41DJh1C7n4S+eAXtul/VTs0Up/KAOT2pwRlLV9H+vlN/GO7q/SW8LjvPS 8GUA== X-Gm-Message-State: ALoCoQnizp4iQ+VZga2U7gFWtRkJxNYJfH1Y1n4kp5bHwC3dDFtk/XpIeTqh5LNAwRM/BybMD5n0 MIME-Version: 1.0 X-Received: by 10.58.7.1 with SMTP id f1mr24545319vea.15.1391352882455; Sun, 02 Feb 2014 06:54:42 -0800 (PST) Sender: rasmus@mindplay.dk Received: by 10.58.136.34 with HTTP; Sun, 2 Feb 2014 06:54:42 -0800 (PST) In-Reply-To: References: Date: Sun, 2 Feb 2014 09:54:42 -0500 X-Google-Sender-Auth: IqjhO8hbeDD-FTbkjhNqpYwbctQ Message-ID: To: Sara Golemon Cc: Rasmus Schultz , PHP internals Content-Type: multipart/alternative; boundary=047d7b6dce845100f504f16d96c5 Subject: Re: [PHP-DEV] constant scalar expressions From: me@rasmus-schultz.com (Rasmus Schultz) --047d7b6dce845100f504f16d96c5 Content-Type: text/plain; charset=ISO-8859-1 Good answer - thanks :-) On Sat, Feb 1, 2014 at 9:32 PM, Sara Golemon wrote: > 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 > --047d7b6dce845100f504f16d96c5--