Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96570 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5439 invoked from network); 24 Oct 2016 05:05:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2016 05:05:21 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.182 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.182 mail-pf0-f182.google.com Received: from [209.85.192.182] ([209.85.192.182:35768] helo=mail-pf0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/15-28528-F869D085 for ; Mon, 24 Oct 2016 01:05:21 -0400 Received: by mail-pf0-f182.google.com with SMTP id s8so91316529pfj.2 for ; Sun, 23 Oct 2016 22:05:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=Ur/n9CVlBun2aqOMpwGXwrPjaEHqo3tXty0E+x8g/qc=; b=JeggbDr49bempAU/RuQn24AhDfr16XpyRQCIt2wkDIsAoJUOk3S13iwA+6qgUJGCtb b+DFl+49pcyOybmMypAixipCzsGPy1l0omHR2HbuUGzPQFGIGDlJy/n6mFe3KkyNEmZ3 Qz+m3M957L0XFbIH6uSCDd1V74FYtKQCTizXjnkB6SmSFB2TsikP2PzcUAVGeqz/jvFY lGIZhd/RosAM3ITsF6LLXGXfQcp/kxKhOoQGp093SI8sZP1QjnxMiR35301PU6omdAqf JBHwVRKavqZInkV/m5uUuJzNvFtF/fZAaVQO3YPppzKcLn/HOGGrYxwlZCtHFRDmZip+ Y4pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Ur/n9CVlBun2aqOMpwGXwrPjaEHqo3tXty0E+x8g/qc=; b=PsM15jWu770C5LR2xFQgQP437cZCXv1u912KThBeoiNO7IFbg1v/EKtienQd/OiR7H WpG2qGZ2hWjCwpj/MhzcDR0DmhCdI4aurmps9bcYyL8z5vf0qyyUcJX8G1XTKr3mxXkH bJhHXDdJM3DTnQ3aWEy/7juW66DADLydTL848vIoxDw5mldKtaAQTa2CiC8TTOu8VTEA Cqw6CCRMDoTIqu4g1UNqUC1/HJiDftlVTbVGWE/eZji2gGfqwMpSXWL1OVDmO+VvZVk2 OAd14FFRIkiELqvFSOstj2Oo6nwqQJpdpOzhmWh2ruvyD8Q5Jg0uh7PXVKWWn/8328i6 V9GA== X-Gm-Message-State: ABUngvcy2TCUjGJ8GYRMBgFSuQRxYecQWYOK8qj+dowL1w3Dk06IMw/hDf2xuM3VRLY0bw== X-Received: by 10.98.57.140 with SMTP id u12mr25636724pfj.127.1477285516763; Sun, 23 Oct 2016 22:05:16 -0700 (PDT) Received: from Stas-Air.local ([2602:306:ce9c:e680:1890:46a7:9aa1:a4af]) by smtp.gmail.com with ESMTPSA id i123sm21213094pfg.30.2016.10.23.22.05.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Oct 2016 22:05:16 -0700 (PDT) To: Stephen Reay References: <1e7da1db-9fc6-a3ce-9cba-b219af2dd7d4@gmail.com> <7F1CFE1E-48A4-450E-BFD5-645100A16AE9@koalephant.com> Cc: =?UTF-8?Q?Micha=c5=82_Brzuchalski?= , PHP Internals List Message-ID: <6b490ba3-ad2d-2a2b-9117-de53ce7fea7f@gmail.com> Date: Sun, 23 Oct 2016 22:05:14 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <7F1CFE1E-48A4-450E-BFD5-645100A16AE9@koalephant.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Object type hint From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > In the same way that Iterable type hint allows you to safely do a > foreach on an argument, object allows you to safely use property > accessor syntax (i.e. ->). For me it would be most useful in lower > level utility classes. Not sure I get this point. How you can safely use -> if you have no idea what object you've got? You certainly don't expect every object to have the same properties? -- Stas Malyshev smalyshev@gmail.com