Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98186 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2890 invoked from network); 4 Feb 2017 16:21:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2017 16:21:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=ilija.tovilo@me.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ilija.tovilo@me.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain me.com designates 17.172.80.97 as permitted sender) X-PHP-List-Original-Sender: ilija.tovilo@me.com X-Host-Fingerprint: 17.172.80.97 st11p00im-asmtp003.me.com Received: from [17.172.80.97] ([17.172.80.97:56910] helo=st11p00im-asmtp003.me.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/65-38491-27FF5985 for ; Sat, 04 Feb 2017 11:21:06 -0500 Received: from process-dkim-sign-daemon.st11p00im-asmtp003.me.com by st11p00im-asmtp003.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) id <0OKU00F00Y9QPB00@st11p00im-asmtp003.me.com> for internals@lists.php.net; Sat, 04 Feb 2017 16:21:03 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=4d515a; t=1486225263; bh=8JWnJd9UvTqJ8ut6+xa1GV4KaxAlFlZivcckkmg/DaY=; h=Date:From:To:Message-id:Subject:MIME-version:Content-type; b=rZfd4ZIvQFF/Fk8IIvxvHwf//nkGGz+lCA/W9vQjEcqeJzLRNTMWVZiXg52ggi6NE v8vse4R16u55V3QeF8P3QUgTr3uK8gosIgb+ByekWtcxF5lwbuSIX0ewqXM5qnSEdM ypVhWii6tYV/MSDTVDopJtj11Yjaopp6NOexm2dXVUFceF6mvRZX55PhLNhmOr/dCm Bv4xKs7QXidUF/CuJhpfHwxxMuqH3L38XrGmi3T8ZfqUEi4aOszlnEcc2HINm7NyAX lU8FL4cDFLLGigTtEFyoKu3wiubxKyEw1R+lBt0QaGA0Dg+belzmm6GXt7H39LaELm AP2ai3RTwAabg== Received: from icloud.com ([127.0.0.1]) by st11p00im-asmtp003.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) with ESMTPSA id <0OKU00PKIYQW3Q00@st11p00im-asmtp003.me.com>; Sat, 04 Feb 2017 16:21:03 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-02-04_13:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1034 suspectscore=32 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1603290000 definitions=main-1702040176 Date: Sat, 04 Feb 2017 17:19:34 +0100 To: Stephen Reay Cc: internals Message-ID: In-reply-to: <99D2DDA5-0C1B-4DE0-B91F-DB9004A75327@koalephant.com> References: <19.45.38491.677D4985@pb1.pair.com> <611b72db-420f-4963-ab92-0ddf977a0aaa@Spark> <9AF0D2F6-D668-418C-8B96-3320D9D245ED@trowski.com> <5722B01C-A621-4C13-B34B-383B0D9753F9@koalephant.com> <22B18CB2-0383-4D4D-9B55-91A748725AC9@trowski.com> <77287A6A-C3E9-4C93-A1F2-2899DAEA8738@koalephant.com> <119a1b84-edff-424c-99ba-fd14cbc23ce4@Spark> <75d6f740-92ee-4906-a668-f8c83039d300@Spark> <99D2DDA5-0C1B-4DE0-B91F-DB9004A75327@koalephant.com> X-Readdle-Message-ID: c43539dd-82f6-4ae9-bb6c-7204dc00034f@Spark MIME-version: 1.0 Content-type: multipart/alternative; boundary=5895ff67_39573947_4609 Subject: Re: [PHP-DEV] [RFC][Discuss] Arrow Functions From: ilija.tovilo@me.com --5895ff67_39573947_4609 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hey Stephen > You=E2=80=99re really starting to lose me now. You want types but don=E2= =80=99t want to define them, and you=E2=80=99re somehow mixing phpdoc int= o this. Because we use PHPDoc to provide type hints to the IDE where PHP doesn=E2= =80=99t support them yet (variables and properties). > Currently PHP has zero support for =46oo=5B=5D (or array<=46oo> if you = prefer) as a type hint. In *theory* an IDE could use the calling scope=E2= =80=99s context (assuming the source of the array is purely local or from= arguments/return values that are typed) to infer types, but I haven=E2=80= =99t seen it, and I would likely still use type hints, to cover the case = where something changes elsewhere. That=E2=80=99s because you don=E2=80=99t trust it ;) You should be able t= o trust it. But anyway, that=E2=80=99s beside the point. Let=E2=80=99s get back to th= e R=46C. > What were you saying about not everyone being the same=3F What I=E2=80=99m saying is that maybe it would make sense to vote for syn= tax, as this would make most people happy. People seem to complain about that the most but agree with the general id= ea of the R=46C. --5895ff67_39573947_4609--