Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62753 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97177 invoked from network); 3 Sep 2012 16:18:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2012 16:18:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vb0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:65507] helo=mail-vb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1B/4F-20751-F38D4405 for ; Mon, 03 Sep 2012 12:18:07 -0400 Received: by vbbfs19 with SMTP id fs19so5962373vbb.29 for ; Mon, 03 Sep 2012 09:18:04 -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:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=Lsy+hk4V2XdrGZ5UbQHzRVBxqb+ZCAzUEKb8ChV2yWM=; b=i8j8O63WXyk1enZ8nxSeNvaqyJidbXwUWU2wCTT6p6b9AM02Pp379y5a0tW2MT/Zgl rOLGtxKNeR+gcyQHoBzVRapYr1tfIrx6pFpMRdDLmi/3h+m5UeCVt1I4SLa0yvJXTAKL qKRghlN7HZ01oAeg2QdfxwJ8UG0COdiA3u6DPzvRf7eS0A8zhCqD9wGIMfkKQBgMtv4p PbuaNQuD2fDSWjuKOkC5HoOVFXUlulc/Q0YVq87KJX8775OQ+Jduad/YxqE4bnhsb3Dx DXZdKfCff+NlRsp0JhJ5qOTPe3VjRwCHmzopc3uXwcQhYeYxv5xG20ZkV+wZznFlqCe0 Ba3A== Received: by 10.52.94.168 with SMTP id dd8mr10439746vdb.127.1346689084409; Mon, 03 Sep 2012 09:18:04 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.220.18.15 with HTTP; Mon, 3 Sep 2012 09:17:44 -0700 (PDT) In-Reply-To: <5044D54E.9090008@ajf.me> References: <5044C3E6.8040202@hoa-project.net> <5044CA5C.9080208@ajf.me> <5044D54E.9090008@ajf.me> Date: Tue, 4 Sep 2012 00:17:44 +0800 X-Google-Sender-Auth: maSotFV9E_3cOk-J3qtf6I1ruRE Message-ID: To: Andrew Faulds Cc: ivan.enderlin@hoa-project.net, internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] $obj->attr::method() is not allowed From: laruence@php.net (Laruence) On Tue, Sep 4, 2012 at 12:05 AM, Andrew Faulds wrote: > On 03/09/12 17:03, Laruence wrote: >> >> It is great parser(simple and fast) which make php works well for years.. > > No, it's not, it's overly complex. You have to define all sorts of different > expression and variable variations :( if you don't, you will get a complex executor. > >>> rewrite the parser for what? for more academism? > > No, because current one is constraining implementation of some things, and > making some things impossible. (we are limited, for instance, in options for > order that generator expressions (e.g. Python's [i*2 for i in range(6)]) > could be) > >>> we will rewrite it soon or later, but it's not because current one is >>> bad, it will because a better parser tool shows up... > > Well, current one is bad. It only works well for some common cases. For > others, it doesn.t I really don't get it, you are saying current is bad, but every language has defects, either parser, or executor. why do you think rewrite a new parser will make every think perfect? there is no perfect language at all. thanks > > -- > Andrew Faulds > http://ajf.me/ > -- Laruence Xinchen Hui http://www.laruence.com/