Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88507 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93230 invoked from network); 26 Sep 2015 07:18:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2015 07:18:29 -0000 Authentication-Results: pb1.pair.com header.from=pajousek@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pajousek@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.170 as permitted sender) X-PHP-List-Original-Sender: pajousek@gmail.com X-Host-Fingerprint: 209.85.223.170 mail-io0-f170.google.com Received: from [209.85.223.170] ([209.85.223.170:34201] helo=mail-io0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/AA-31991-FB646065 for ; Sat, 26 Sep 2015 03:18:28 -0400 Received: by iofb144 with SMTP id b144so132353233iof.1 for ; Sat, 26 Sep 2015 00:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=pMsc4gUG+T0uO88Zqo9d6nqwMhZKQjIKW/o2WAZMONI=; b=qf1AOL+VmkNr72YuUkPE6oA12eLy3BV7WZ4/PWQnF4WIYsixzeZ1O1amRSuol58/yt +P18bLs9oSW41DoApeI/MkH6WTF/VGyNqAYMLHbLfJdkxkWpmbTL7t4Byw68stBhfsYz sOkvnIfEYWEOi2dsx9c+FWUgi/2baKBYhp0BhiKps69e3/qjnkRM1+BYWQRtvjgJZ7it Rd7Aa72+sdNu2A35O3RyLCp5zVftuujwHicODebZyoR7gHWSBifZlu9RPJRrSTpEBnL2 G4kOEDIavBTN2Cv9bWAtWgq1vkHcYY/QYGDk21+jFf/RuPgnsGpicMP6di4A0nn+hxBI N4Vg== MIME-Version: 1.0 X-Received: by 10.107.170.37 with SMTP id t37mr9811971ioe.166.1443251900479; Sat, 26 Sep 2015 00:18:20 -0700 (PDT) Received: by 10.107.189.132 with HTTP; Sat, 26 Sep 2015 00:18:20 -0700 (PDT) In-Reply-To: References: Date: Sat, 26 Sep 2015 09:18:20 +0200 Message-ID: To: Bob Weinand Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] [VOTE] Short Closures From: pajousek@gmail.com (=?UTF-8?Q?Pavel_Kou=C5=99il?=) On Tue, Sep 22, 2015 at 3:59 AM, Bob Weinand wrote: > Hey, > > Thanks for all your feedback in the discussion thread! > > So, before I start the vote, just two quick notes: > I've added two notes about the statement syntax and the single variable u= se. > Though a few people complained, I'm not switching to the =3D=3D> operator= , as I noticed many people expected typehints to work (they don't due to pa= rser limitations) when they compared to Hack's short Closures. It also allo= ws us to differ syntax-wise [e.g. for typehints] from Hack without causing = any confusion later. Which should be the smartest choice: Avoid conflicts. = (If anyone strongly feels against that, he may vote no, but I would like to= not bikeshed that in this Vote thread, but leave it free for eventual actu= al issues.) > > Now, the link to the RFC about Short Closures: > https://wiki.php.net/rfc/short_closures > or straight ahead to the vote: > https://wiki.php.net/rfc/short_closures#vote > > Thanks, > Bob > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Hello, since the RFC doesn't look like it will pass, I have a question about RFC process - will you be able to "fix" the RFC and submit it for vote again with targeting PHP 7.1? The biggest issues seem to be - ~> operator instead of =3D=3D> - missing type hints - auto imports If probably the first two would be resolved, then maybe the RFC could get accepted? I personally don't understand the 3rd complain, since having to use() everything would make it "not-so-short closures". I also remember people not liking the option not to have parenthesis with single parameter. I was thinking about this, and with the type hints, it would be probably better anyways to have the ( ) required, so that would be just a single use case where they wouldn't be required - so is there a point in keeping this special use case? Regards Pavel Kou=C5=99il