Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92812 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28312 invoked from network); 26 Apr 2016 18:33:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Apr 2016 18:33:32 -0000 Authentication-Results: pb1.pair.com header.from=pierrick@webstart.fr; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pierrick@webstart.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain webstart.fr from 209.85.161.173 cause and error) X-PHP-List-Original-Sender: pierrick@webstart.fr X-Host-Fingerprint: 209.85.161.173 mail-yw0-f173.google.com Received: from [209.85.161.173] ([209.85.161.173:33476] helo=mail-yw0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/88-20013-A74BF175 for ; Tue, 26 Apr 2016 14:33:31 -0400 Received: by mail-yw0-f173.google.com with SMTP id t10so29370118ywa.0 for ; Tue, 26 Apr 2016 11:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=webstart-fr.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=nRkGmisWRQU361ZMmiokhvyrh6XGlwFkyoekYDCMb/E=; b=CvBsZv4upgqr2KXTlrdX4ifspDOB3/6rJ150Rx7tjHr5VbZrI1Q65BuAOO2UgWOxzC 67hAj3Yqt/MdDIpj2aqCOBicb4Yd/UQj7oS6S8hvQJ4xMl6T0Zcf58LVL4LVHWWnhS+H PPmHfM/9DcR5Dk4PuBFtVgsdCmJpkwGOy/lA5a5iXY8wziLjTiL32msd2k6yL2PJfNGi 57VN6KOJzm0TKHEbUy/NZBhqlMLYvS6YVXUe/rRYHIjj/tqftxbijBKVlkfXjDMMo/jE qXrQYkT3fqgfbrp/t8a9pcnVl02LGDdx1dL7+x/2fl98lQ5E1GO5sdYE6+PEackYzx46 p/4Q== 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; bh=nRkGmisWRQU361ZMmiokhvyrh6XGlwFkyoekYDCMb/E=; b=XZRIHJU4zYeipReX6sUXFNUPNsPeflguKhcAtDkSu3oHmmTXEcqp1UevdO7fhT1T69 zm5SBgKXUYN8wTjIDI0TsCgOUU7foUV1QlpgyiXoz9NS6yyujBxak0m0a+UMyPffUsfZ OqzotYAgdvaHpvzZHxNL9jCZM5aRJoYnexJur3GFIFMRxlNmZdIIIKaZpkF0CexwyEy/ /Q89WBkuHFg47DmU8sNJb5PhlBaViH1N4Oe/sii3wUmvNALtFx0TyASsTDX8bl7rUkbv f3SjK2XiSSdv1eFj48S2LPC5KSJCX3uAhQJQpBUF3e2oeg2CedFNgVQaC0yM4wbJQD8V I40A== X-Gm-Message-State: AOPr4FUeBxD4p5gR7BpVs7bWM3ON6oYNsJGJ0o9K2Rhb4ey1oKMBhmFAFQKl+tgeW6ymCJsFG4Oqc91rl/x6Uw== MIME-Version: 1.0 X-Received: by 10.37.59.87 with SMTP id i84mr2084873yba.35.1461695608417; Tue, 26 Apr 2016 11:33:28 -0700 (PDT) Sender: pierrick@webstart.fr Received: by 10.37.81.7 with HTTP; Tue, 26 Apr 2016 11:33:27 -0700 (PDT) In-Reply-To: References: <571DD94B.3060604@zend.com> <571E63D0.8080800@gmail.com> <9c24f969-cb0e-cb46-a23c-6e06e7de7d79@gmail.com> <571E7C08.6010309@gmail.com> <571F1B95.9030203@zend.com> Date: Tue, 26 Apr 2016 14:33:27 -0400 X-Google-Sender-Auth: 5cYr5AX0XA5eNvRjcGmP2P-qSzk Message-ID: To: Dmitry Stogov , Dominic Grostate Cc: PHP internals Content-Type: multipart/alternative; boundary=001a114ecbc682a06905316787d7 Subject: Re: [PHP-DEV] [RFC] PHP Attributes From: pierrick@adoy.net (Pierrick Charron) --001a114ecbc682a06905316787d7 Content-Type: text/plain; charset=UTF-8 And it will probably be in conflict with the Short Array Syntax ? On 26 April 2016 at 13:14, Dmitry Stogov wrote: > Just because HHVM is closer to PHP than C#. > > > ________________________________ > From: Dominic Grostate > Sent: Tuesday, April 26, 2016 19:43 > To: Dmitry Stogov > Cc: rowan.collins@gmail.com; PHP internals; Stanislav Malyshev > Subject: Re: [PHP-DEV] [RFC] PHP Attributes > > > Why not like C#? > > [Description("My Function")] > function my_function() > {} > > Without the semicolon, this wouldn't be valid in any other context. > > On 26 Apr 2016 8:41 a.m., "Dmitry Stogov" dmitry@zend.com>> wrote: > > > On 04/25/2016 11:20 PM, Stanislav Malyshev wrote: > Hi! > > No, but this is valid: > > @atrr(); function foo() { ... } > > That's perhaps a little too close for comfort...? > That's different syntax. If you put ; in the middle of statement, it can > change - "$c = $a + $b;" is not the same as "$c = $a; + $b;" - but > nobody thinks + can not be used because of that. As I said, << and >> > are existing operators too, so if you are creative enough, I'm sure you > can find cases like that too. > > Hi Stas, > > You may try to replace attribute syntax with @attr(...) (without > semicolon) into our PHP parser. > Note that we have LALR grammar + restrictions caused by semantic actions. > If you are able to do this, I'll add it into the RFC as an option. > > Thanks. Dmitry. > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a114ecbc682a06905316787d7--