Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58217 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96567 invoked from network); 27 Feb 2012 23:30:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2012 23:30:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:57941] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/10-30531-3021C4F4 for ; Mon, 27 Feb 2012 18:30:12 -0500 Received: by werh12 with SMTP id h12so1250721wer.29 for ; Mon, 27 Feb 2012 15:30:08 -0800 (PST) Received-SPF: pass (google.com: domain of keisial@gmail.com designates 10.180.14.37 as permitted sender) client-ip=10.180.14.37; Authentication-Results: mr.google.com; spf=pass (google.com: domain of keisial@gmail.com designates 10.180.14.37 as permitted sender) smtp.mail=keisial@gmail.com; dkim=pass header.i=keisial@gmail.com Received: from mr.google.com ([10.180.14.37]) by 10.180.14.37 with SMTP id m5mr21503745wic.19.1330385408969 (num_hops = 1); Mon, 27 Feb 2012 15:30:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=g2Rjo52jE6PQcnbZKaMTmHV+piApMSgJS9ZSHAUyTEs=; b=HyKVzJ5Ghns+DIZZHgm+7JfJBzZ/i4hAgHRMf7vYjh72wIcQHc1z+GB3+Fy1iWkcwv n+5BK6NXNclw8IKJ4mAGdAGXzrK9LY1ya8GJEyXnNrH+BODgjn4G1bETSTOjrwVi3sPQ +Vu8Fyj5yd/HF7kO/IjN/uKYbfDhicuSHMuyk= Received: by 10.180.14.37 with SMTP id m5mr16909997wic.19.1330385408880; Mon, 27 Feb 2012 15:30:08 -0800 (PST) Received: from [192.168.1.26] (71.red-80-28-70.adsl.dynamic.ccgg.telefonica.net. [80.28.70.71]) by mx.google.com with ESMTPS id 9sm38839120wid.2.2012.02.27.15.30.06 (version=SSLv3 cipher=OTHER); Mon, 27 Feb 2012 15:30:08 -0800 (PST) Message-ID: <4F4C1324.2040905@gmail.com> Date: Tue, 28 Feb 2012 00:35:00 +0100 User-Agent: Thunderbird MIME-Version: 1.0 To: Anthony Ferrara CC: Ferenc Kovacs , Michael Morris , "internals@lists.php.net" References: <1330357150.2159.30.camel@guybrush> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Scalar type hinting From: keisial@gmail.com (=?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?=) On 27/02/12 22:52, Anthony Ferrara wrote: > Ferenc, > > Thanks for the comments! Thanks from me, too. And thanks to you, Anthony if you get to summarise that. >> There were ideas, but they didn't have enough traction. >> IMO we can't have a proper solution without changing the existing behavior >> for complex types, if you implement strict typing for scalars that turns the >> language strict typed, if you add dynamic/weak typing for the scalars, you >> will have an inconsistent implementation. > What behavior would need to be changed for complex types? Adding the > ability to hint/cast between trees? I'm kind of confused by this > bit... I suspect one of the scalars should be complex (= objects?) > I think that's my biggest problem with the dynamics of this list. > Ideas aren't really nurtured as well as they could be. If the idea is > solid, and has an implementation, then it's great. But there are > plenty of seedling ideas that get lost or down trodden-ed simply > because it's not bulletproof... Yes, the noise ratio of this list is quite high. Probably related to its high volume. That makes people faster in discarding ideas as "been there" and generates friction. And low-quality discussions like that don't attract smart people insights, precisely. It's a vicious circle.