Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83032 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51191 invoked from network); 18 Feb 2015 08:18:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2015 08:18:37 -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 74.125.82.174 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 74.125.82.174 mail-we0-f174.google.com Received: from [74.125.82.174] ([74.125.82.174:40370] helo=mail-we0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/05-18888-CDA44E45 for ; Wed, 18 Feb 2015 03:18:36 -0500 Received: by wesx3 with SMTP id x3so3102830wes.7 for ; Wed, 18 Feb 2015 00:18:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=R1JhSym5GKIUr9bbdvoLYRlVtKyo80rgvjfftr46g7s=; b=TEpHv/PhMy+cS4nxDJ7db3FjCNoerONjWIZZElFkTiNAZg1w32di/eQ+4o3tmMYgay Jj7GoqRPuUX6ok8ez7djef919pHmuT1cryTf6N9OPYQ2VIG/5ydySPrUX7XT9U0Ghkib vtP27uBOYj/eTEXNVXYC6Ws674uGAL2UUDUid822LoNuqnqctCIH2FvsED+2HzRv98X4 lVSx7RuJS/Vp0qDqjAS5Dv2CWyufJMm5lIT526mbamKorR8ryVk5sEwdcdM7uIL+1vzp /3e5pKJExLBTeCcyD10LMpLzcWuXc398hqb8zPb9e4TYycAmmJL/n8FXTDoRoEYXlW5r P64w== X-Received: by 10.180.37.110 with SMTP id x14mr2421572wij.45.1424247513098; Wed, 18 Feb 2015 00:18:33 -0800 (PST) Received: from Stas-Air.local (business-188-111-011-034.static.arcor-ip.net. [188.111.11.34]) by mx.google.com with ESMTPSA id pp10sm31346006wjc.31.2015.02.18.00.18.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 00:18:32 -0800 (PST) Message-ID: <54E44AD6.3040500@gmail.com> Date: Wed, 18 Feb 2015 09:18:30 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Sara Golemon , Rasmus Lerdorf CC: francois@php.net, Philip Sturgeon , Arvids Godjuks , Jefferson Gonzalez , Rowan Collins , PHP internals References: <011801d04a07$83ab1c00$8b015400$@php.net> <016f01d04a3a$e9183220$bb489660$@php.net> <54E290E5.3020508@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Reviving scalar type hints From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > So let's talk compromise. > Would leaving internal functions out of the picture at this stage > change you mind? This is effectively what Hack does, internal > functions are explicitly marked as "coercible". For me, the option that makes users remember which functions are internal and which are not, because they work radically different (and I don't mean in some small detail, I mean up to a complete failure if I get it wrong) is not something I'd really like. > Would a tri-state option make sense? ('weak-all', > 'strict-user/weak-internal', 'strict-all') > How do we get from here to something you would like? Two semantics in the same language are bad enough. Three, IMHO, is just a no go, dealing with code having three different semantics would be completely impossible. -- Stas Malyshev smalyshev@gmail.com