Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97043 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29879 invoked from network); 19 Nov 2016 14:04:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2016 14:04:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@mindplay.dk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@mindplay.dk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mindplay.dk from 209.85.213.50 cause and error) X-PHP-List-Original-Sender: rasmus@mindplay.dk X-Host-Fingerprint: 209.85.213.50 mail-vk0-f50.google.com Received: from [209.85.213.50] ([209.85.213.50:35854] helo=mail-vk0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/44-09986-40C50385 for ; Sat, 19 Nov 2016 09:04:53 -0500 Received: by mail-vk0-f50.google.com with SMTP id p9so188899273vkd.3 for ; Sat, 19 Nov 2016 06:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mindplay-dk.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4ZyCM7K1SSXc72HRI8F9/cuc/tNOOjpHZwtI4c7HLgo=; b=Zgq57USYpJ8inwfbz+zgzgbxjbD6/DBIuia0EiAawsc/G/32jXXcF8lk3pKuxtL9pT RYBkdiLyK24tCnSj2fCW1UWJCknHw3lwc72sadYQYp1/4IppVr70NcfuYMaUdBykxRZ6 EON/65lQXvgqqc65wqGFPVfYknIBXR4xUyhRRPES3y14jpWToAYsTquJMNsaCidzVQ/V 7pCNM0tVz5Cu6L7S6NizU3K1iehsgh9/Esmdm2Zn3rni1ZPlY7KoGC0RPe7cbhPnSZP6 Y4/AaR/+LnG0MOtFtePnyvPdwZ2H5WvZsGH6jibaSxRcCabVB1+L8z1aPvsEY4TgAkgn ANAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4ZyCM7K1SSXc72HRI8F9/cuc/tNOOjpHZwtI4c7HLgo=; b=i7nt1dh+nE7GZy2R/58oLfvkBGpo7tt0WJGftCrW7jCvLLMLtfWERPYCjKwq4bJfgD it7rhXgeBMAEXPZIryq/In+qVCUceZ03AbOTbnivIdVyNeG2KoNRj4nEIbvX0cm3P535 8+ftckchCZqvqcT4LV0pvRAfjBPedx9g8VImE/arh9DyK4Bsz9ERJWrZ9E6rPZoJJG5E pRiVPalrBaj7+z+ruPhe05/y5JsFX0/H5vpoW0/vUAoubL43gY/HcQE41z2Cn+CqFEIp MVsdLlcwwXF0EYH7nD9SBcY9tFhu5A9wnY3CfOTBAeHFgM3BFNw0wgww1TaiwpjDUyCi wzPg== X-Gm-Message-State: AKaTC01Myu8dwGFvjmnP+0c/kumlYZ4TfXeIUBwlqEJ0IkCGKW2q9xhj6w4iemmRkjejHwrVFmYwb7pmYqan1g== X-Received: by 10.31.162.72 with SMTP id l69mr2636020vke.123.1479564289343; Sat, 19 Nov 2016 06:04:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.1.147 with HTTP; Sat, 19 Nov 2016 06:04:48 -0800 (PST) In-Reply-To: <576C4FE2.3090508@pascal-martin.fr> References: <576C4FE2.3090508@pascal-martin.fr> Date: Sat, 19 Nov 2016 15:04:48 +0100 Message-ID: To: "Pascal MARTIN, AFUP" Cc: PHP internals Content-Type: multipart/alternative; boundary=001a114368dae39a7e0541a7e7f3 Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: rasmus@mindplay.dk (Rasmus Schultz) --001a114368dae39a7e0541a7e7f3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Heh, so, this week, a coworker of mine started using PHP 7, and he calls me over, and he's like, "I don't get it, I had heard PHP 7 was supposed to have type-hints now - it worked for return-types, but what am I doing wrong, I can't seem to get this to work for properties?" He actually had something like "public int $id" in a class-declaration on his screen, and was genuinely confused - he simply assumed that would work, since it worked for return-types. When I explained to him that, no, PHP 7 still isn't type-hinted, it's *more* type-hinted, but still not fully type-hinted, he gave me the lemon-face. You know the one. Like you just ate a lemon. Yeah. I don't think there's a developer on my team and this point who isn't at least checking out other languages in frustration with the lack of features and consistency. I'm starting to feel like we're at risk of some of our best, young developers walking, if somebody offers them a chance to work with more "exciting" languages like Scala, Go, Dart, etc. - I'm not trying to say that proper type-hinting is the whole answer, but I believe it would go a long way towards consistency and the sense of completeness you get from some of the competing languages, where these features were engineered into the language from the design stage, rather than being added on a bit at a time. Any plans to revive this RFC or is it officially dead? On Thu, Jun 23, 2016 at 11:08 PM, Pascal MARTIN, AFUP < mailing@pascal-martin.fr> wrote: > Le 10/06/2016 12:38, Joe Watkins a =C3=A9crit : > >> The vote for typed properties has been restarted. >> > > Hi, > > We, at AFUP, often tend to be on the "more static / strict types" side of > things, and it remains this way for this RFC -- which means we would be += 1 > for typed properties. > > A few noted this was not quite "the PHP way", while the majority felt thi= s > was in line with previous changes (like scalar type declarations, nullabl= e > types...) and could prove interesting for complex applications. > > Judging from where the votes are right now, I'm guessing this RFC will no= t > pass, but, in any case, thanks for your work on this! > > There are more "yes" than "no", so maybe it will open a path towards > something, maybe a bit different, in another future version... > > -- > Pascal MARTIN, AFUP - French UG > http://php-internals.afup.org/ > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a114368dae39a7e0541a7e7f3--