Re: function call chaining
| From: | Chris Stockton | Date: | Tue, 19 Jan 2010 17:27:49 +0000 |
| Subject: | Re: function call chaining | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46815@lists.php.net to get a copy of this message | ||
Hello,
On Tue, Jan 19, 2010 at 10:07 AM, Lukas Kahwe Smith <mls@pooteeweet.org> wrote:
>
> On 19.01.2010, at 18:03, Chris Stockton wrote:
> enhancements in the sense that they enable things that were not possible before, sure. syntax
> sugar that hurts readability, not really.
> if you are worried about key strokes switch to an IDE. if you are worried about performance use
> a byte code cache.
>
I am not worried about key strokes or performance of my code, neither
were arguments I made. The points I am making is I believe array
access and object creation are fairly good utilities that would
naturally fit inside the language without looking like they do not
belong, I do not call those syntax sugar. The function calls I believe
could also be a utility that if not for PHP's error model could also
fit more naturally. Regardless of my belief on syntax highlighting I
think that the function patch could be useful and used responsibly by
the PHP user base and would be a good "enhancement", yes, I said
enhancement.
Syntax sugar already exists in PHP, and they call it syntax "sugar",
because it is sweet, not bitter, duh. :-)
Regards,
-Chris