Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46815 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84058 invoked from network); 19 Jan 2010 17:27:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2010 17:27:53 -0000 Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.186 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 209.85.216.186 mail-px0-f186.google.com Received: from [209.85.216.186] ([209.85.216.186:51455] helo=mail-px0-f186.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/DA-29385-89BE55B4 for ; Tue, 19 Jan 2010 12:27:53 -0500 Received: by pxi16 with SMTP id 16so3043220pxi.29 for ; Tue, 19 Jan 2010 09:27:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=5A/sdJsHN85NTMb9MO1j+J0ov8yxvyTf9ZBn86cZVi4=; b=amsPlkwFmxrbAzowDraOa86ld51be/aNcS6oHpc4KblPblBQGYXzLcWp/atfQC6H2J FRa/lqbVGSHyZhwFpdbKzTCfpYuQIXqxIItcrFm0k60B7MDFRPUGtcfKotNU6Jqwp/vs RCmvjpVojxTzOQg50QnlhVTW+Tvw/LFoctNuU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ZlJbyHtn+Qh7oxTtEW9tgJlNHdA1fDG5dYnLyrq2Fx/jxvOUnogbC9meHrynRt5NVn UZixLFbd6sUq6dVYOwT7+VT7Gm2musEfiek92+lEHYwRVqyMSXBmVmZ9uV1cQJzxaBak sr2tGPAGA+Vb8JDU4D8Kn8g+7354SXphaWfZw= MIME-Version: 1.0 Received: by 10.142.248.36 with SMTP id v36mr3927071wfh.228.1263922070020; Tue, 19 Jan 2010 09:27:50 -0800 (PST) In-Reply-To: <0932AFD3-59EF-4A69-BFBF-25C899B6369D@pooteeweet.org> References: <4B54FC87.8070106@zend.com> <0932AFD3-59EF-4A69-BFBF-25C899B6369D@pooteeweet.org> Date: Tue, 19 Jan 2010 10:27:49 -0700 Message-ID: To: Lukas Kahwe Smith Cc: Stanislav Malyshev , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] function call chaining From: chrisstocktonaz@gmail.com (Chris Stockton) Hello, On Tue, Jan 19, 2010 at 10:07 AM, Lukas Kahwe Smith 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