Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91849 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13626 invoked from network); 22 Mar 2016 15:10:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Mar 2016 15:10:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-wm0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:34562] helo=mail-wm0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/C8-46740-B6061F65 for ; Tue, 22 Mar 2016 10:10:36 -0500 Received: by mail-wm0-f42.google.com with SMTP id p65so196986583wmp.1 for ; Tue, 22 Mar 2016 08:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=vmU+yqxv8as1cPJkGgEx++4TI3sgv97MSfINLtacpZg=; b=xND289eO65ghTx3y6B2iUTb3r1efDtsufPnVBPX7WnSL375LTY4L01/SsbMnSUkTQN 4TkmjRpjhBWGOjpYIi5h4xSUjApNsROump945iP8eySgQn+zenb0xYezDlGfUfMn5BvW CUaaSMcbQtxoPCfzPfkbzkuUe6urInFpfpTEJ9HaUz8UAMPGYZ1CD2t/bjMNAoZlhRYY jO2qq2KZw7tRBnGhPwLVZ6IFQyNJpTzWbVB87iY6JFQ2rUnXX6FVDAbgKSlHlibMDhA7 UqlQyA6ubwkD1qKh/rNdcvY5nt549urjRREBp/YywRvdjGQ7dnyywrKX4IaBt/kqI+3t 0Z+A== 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:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=vmU+yqxv8as1cPJkGgEx++4TI3sgv97MSfINLtacpZg=; b=ZxaxQFA1Arq/XnYWMFxdp8Wd/xR+j/wtJOat6TITWP82kqHaIPdTsUIV3xz2AJZ/qz huURnpefEIT41Mz5eywsQ+zJLJD7iI853FKDyZ54rvCmvN4XJ5L6qBl+pNcs16LiPNtF GDt1mqwAPYwjjUyQ/ay0t9zKctFtzZ0Sv5bFh7F9+Yh7uXevTloO7xGskt1iRQp/etY8 pSR2BtKWdlw+IEcvKPF8ZyXxrDCCEG2Eq00A6lxBLmocPR71sEkCrW0xN+CZRCd7Z2P4 lfMVZ6rQnsDC718Na0msy+eGnR3EEeEIXXn+XLcVC46tcAJxCKJU4RVXa5a3lkt5t7vd XMPw== X-Gm-Message-State: AD7BkJIyikEFAAbc9cNPbzXoD75yZ0DvtPUxoi8bLskS0XWvx++WdanbkzhKB5CMTmgvFA== X-Received: by 10.28.1.199 with SMTP id 190mr21404806wmb.3.1458659432890; Tue, 22 Mar 2016 08:10:32 -0700 (PDT) Received: from [192.168.0.82] ([93.188.182.58]) by smtp.googlemail.com with ESMTPSA id a10sm30674186wjb.38.2016.03.22.08.10.31 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Mar 2016 08:10:32 -0700 (PDT) To: PHP internals References: <1458149992.3969.2.camel@kuechenschabe> <1458151531.3969.8.camel@kuechenschabe> <1458153695.3969.16.camel@kuechenschabe> <3F.70.02405.6803BE65@pb1.pair.com> <56F01545.8080008@gmail.com> <56F14572.701@gmail.com> <56F15EF5.80006@telia.com> Message-ID: <56F16023.1010002@gmail.com> Date: Tue, 22 Mar 2016 15:09:23 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56F15EF5.80006@telia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC Discussion] Typed Properties From: rowan.collins@gmail.com (Rowan Collins) Björn Larsson wrote on 22/03/2016 15:04: > Hm... In Hack the above code works, see: > https://3v4l.org/nsA5W > > Well they have a different implementation as mentioned in > the RFC, so no wonder. But they do have typed porperties in > the language. It's not just a different implementation, it's a completely different feature - there's no actual type checking at runtime, the type hint is more like an annotation for use with static analysis tools. See https://3v4l.org/ntCr7 which happily assigns int(6) to the "typed property" in HHVM, but is detected by the RFC branch. (Incidentally, I note the TypeError's message is missing the variable name; I presume that's either a known issue or an out-of-date build on 3v4l?) Regards, -- Rowan Collins [IMSoP]