Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83353 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18092 invoked from network); 20 Feb 2015 20:17:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2015 20:17:35 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.221 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.221 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.221] ([81.169.146.221:36729] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/01-14173-54697E45 for ; Fri, 20 Feb 2015 15:17:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1424463426; l=1306; s=domk; d=kelunik.com; h=Content-Type:Cc:To:From:Subject:Date:References:In-Reply-To: MIME-Version; bh=iSrpdDJ+ZmOow4srMDefD04rgGJ2WDE4IYILvhX1YBI=; b=RjNaTykAa9J2D9GXJft6ONyu4OpM+PrmfK0lLW9RmFagf7ml6QqHsnW0mEOFx62+8m/ OInBtaEDwr5BDQmvlgtb3tBFrkoVC1XKnwNEcBNMMKQPr3KEVhe9hFgIiKVWL6XoupBwH ODMSjbogkMkhxG4r3/9+IfXhAKHasVR/o9s= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtOnE6 X-RZG-CLASS-ID: mo00 Received: from mail-wg0-f52.google.com ([74.125.82.52]) by smtp.strato.de (RZmta 37.3 AUTH) with ESMTPSA id 906e63r1KKH6Rrq (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) for ; Fri, 20 Feb 2015 21:17:06 +0100 (CET) Received: by mail-wg0-f52.google.com with SMTP id x12so15137110wgg.11 for ; Fri, 20 Feb 2015 12:17:06 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.180.126.98 with SMTP id mx2mr1073392wib.18.1424463426324; Fri, 20 Feb 2015 12:17:06 -0800 (PST) Received: by 10.27.77.131 with HTTP; Fri, 20 Feb 2015 12:17:06 -0800 (PST) In-Reply-To: <54E78171.4090403@fischer.name> References: <54E78171.4090403@fischer.name> Date: Fri, 20 Feb 2015 21:17:06 +0100 Message-ID: To: Markus Fischer Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][Discussion] In Operator From: me@kelunik.com (Niklas Keller) 2015-02-20 19:48 GMT+01:00 Markus Fischer : > On 20.02.15 18:16, Dan Ackroyd wrote: >> On 20 February 2015 at 12:54, Niklas Keller wrote: >>> Hi internals, >>> >>> It would really make sense to vote on this RFC after there has been a >>> vote on https://wiki.php.net/rfc/context_sensitive_lexer. >> >> That is an understatement: >> https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Query/Expr.php#L443 >> >> I don't think changing the language in a way that breaks Doctrine >> would be feasible. > > I second this. I didn't immediately reply when I read this restriction > regarding methods but it should have been obvious. > > IMHO this is an absolute no-go; and the contex_sensitive_lexer sounds > reasonable but has it's own problematic areas. > > - Markus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > It would clearly break Doctrine in its current state if we don't get in that context sensitive parser, but I want to point out, that it would still be fixable by using a magic method for that, like it's pointed out here: https://twitter.com/danielgsims/status/568823804849496064 Of course that would be rather hacky. Regards, Niklas