Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91730 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96467 invoked from network); 17 Mar 2016 08:03:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2016 08:03:26 -0000 Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 74.125.82.50 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 74.125.82.50 mail-wm0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:36446] helo=mail-wm0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/D4-62552-DC46AE65 for ; Thu, 17 Mar 2016 03:03:26 -0500 Received: by mail-wm0-f50.google.com with SMTP id l124so74768562wmf.1 for ; Thu, 17 Mar 2016 01:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=/GGaG0aRR1YaoWy7/Ji/cx6yxMz7RI//2JjcaPp1Hsg=; b=g6j1EnF818ypL2jl6cTvGlSCSmwuh0LdWVbzjAWrMnOAouPXLmLaVJhLk9ivwN5ANh frft4AHwruigLzT7gKRepCB1giI1viyKKyyTwleEEwLXEn/ZM6o16NvhtLyN+bD+bqP7 3he71iVY1TCucJ/HxIOX7Zn0h7IKa/+nu23mqHmrkzutld6hbIB6n6Bw/aJeN8LclLTI Y4/A6SNLQt2KRq7GUwU+ynsaKFoT/JduJDeMTq8gWK0BE9rChmWjDw9c3//a2beJQGPw yMZyNehVW4tpA3+0bAEU8TU4OvxM9KGgOTuzd42MxDuuOV0d2O7swIi0dyps8/w/udhu LtgA== 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:date :message-id:subject:from:to; bh=/GGaG0aRR1YaoWy7/Ji/cx6yxMz7RI//2JjcaPp1Hsg=; b=BhCaaiGgsk04NA+Q5oXnsIPVUSGZO0GtdpG+1tsbB5cFHxFwDV+LwqaN15XIwdAPDb B6MpbSJlDUF3X0iwO2DxGxvsYmFcAQua9eB+QHwBbmktQUTAj1UvjUBPBdY8Dmc4iPJf ZuN/cV1W0f8xkB/90f9E8M8DgK2uxtYaFDRzTfYoUKjmWL8OAh4k3mca7jpEhyqKJ4/E 89cEkTveEByp/4nQ6NIzDhQEWijAYrfcey158Z4Bg0sGFlEgql4NzfCcVgGvGmCfb/dS x2WWXT1UPgoCHvCMiTcT3NkiRggz9AeAjQysQkuwfzyhh1RO7C1l1Ctv/pM4l9iPjX2i 417Q== X-Gm-Message-State: AD7BkJIX6k23TRD0W6LSMfH9h9Ju6WGWzedBHiHPvIhi3iuXk2s3SppdHK55YhdbnD5bMGbCbYuNEnx8zVSb4Q== MIME-Version: 1.0 X-Received: by 10.28.99.6 with SMTP id x6mr13405747wmb.46.1458201802870; Thu, 17 Mar 2016 01:03:22 -0700 (PDT) Received: by 10.194.94.163 with HTTP; Thu, 17 Mar 2016 01:03:22 -0700 (PDT) X-Originating-IP: [77.11.99.249] In-Reply-To: <56E9D45D.4060309@fleshgrinder.com> References: <56E9CC3E.10205@telia.com> <56E9D45D.4060309@fleshgrinder.com> Date: Thu, 17 Mar 2016 09:03:22 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=001a1148f4b278a82c052e3a1098 Subject: Re: [PHP-DEV] [RFC Discussion] Typed Properties From: kontakt@beberlei.de (Benjamin Eberlei) --001a1148f4b278a82c052e3a1098 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Mar 16, 2016 at 10:47 PM, Fleshgrinder wrote= : > On 3/16/2016 10:12 PM, Bj=C3=B6rn Larsson wrote: > > Like the RFC :) > > > > Could this be an opportunity to have default visibility for property's > when > > they are typed in a similar fashion like for functions? Meaning no > > visibility > > implies public and code below would work. > > class A { > > int $i=3D7; > > function f() { > > echo $this->i; > > } > > } > > $a =3D new A(); > > $a->f(); > > echo $a->i; > > > > Was inspired by discussion in "var" Deprecation thread. > > > > Regards //Bj=C3=B6rn > > > > I'd rather like to see this being package visible rather than public. Of > course, that would be yet another Java thingy and I am not trying to > jump on the bandwagon here. > Sorry to dampen your enthusiasm, but you are going slightly off topic here. Package visibility was tried by Guilherme Blanco before, the way namespaces are implemented this is not possible in PHP in an easy way. As far as i understood him, its way too much work for the little benefit. Typed properties is a huge concept on its own, one small step at a time :-) > > --001a1148f4b278a82c052e3a1098--