Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58366 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13282 invoked from network); 29 Feb 2012 22:47:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Feb 2012 22:47:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=shadda@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=shadda@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: shadda@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:58637] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/DD-46815-5EAAE4F4 for ; Wed, 29 Feb 2012 17:47:02 -0500 Received: by iaeh11 with SMTP id h11so5180354iae.29 for ; Wed, 29 Feb 2012 14:46:59 -0800 (PST) Received-SPF: pass (google.com: domain of shadda@gmail.com designates 10.50.236.73 as permitted sender) client-ip=10.50.236.73; Authentication-Results: mr.google.com; spf=pass (google.com: domain of shadda@gmail.com designates 10.50.236.73 as permitted sender) smtp.mail=shadda@gmail.com; dkim=pass header.i=shadda@gmail.com Received: from mr.google.com ([10.50.236.73]) by 10.50.236.73 with SMTP id us9mr22789502igc.16.1330555619005 (num_hops = 1); Wed, 29 Feb 2012 14:46:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=XGd0XWQOIsqGC+wn5MWn+LYhpNd1Z6uJIn/loNUrvxE=; b=OAqzM4vSxIX0KtnG2KHX7DWtRYCNZmrFAkq9ftsLcLUFNZFWxCt+4uINBn0WPO/vuu qsXU8a/RnItAH1nTe1aWf4ud9dkNOI6wuotoE2yOTIVpSzvS7XKZuPnBVhCnb4pCsg2S aBPxB5tLleVdenq3hC8zrRpYkkl9AlXKhvqpE= Received: by 10.50.236.73 with SMTP id us9mr18573115igc.16.1330555618943; Wed, 29 Feb 2012 14:46:58 -0800 (PST) Received: from [10.1.20.144] ([38.104.61.102]) by mx.google.com with ESMTPS id j4sm15991140igq.5.2012.02.29.14.46.56 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 29 Feb 2012 14:46:57 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Wed, 29 Feb 2012 16:46:54 -0600 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <43409D28-75AC-4E9C-A0EA-66FC1DB9FAE7@gmail.com> JEwG=VKow@mail.gmail.com> <887FE7CFF6F8DE4BB3A9535F53AFD06AC3152C6C@il-ex2.zend.net> <887FE7CFF6F8DE4BB3A9535F53AFD06AC3152F5D@il-ex2.zend.net> To: Kris Craig X-Mailer: Apple Mail (2.1084) Subject: Re: [PHP-DEV] Scalar type hinting From: shadda@gmail.com (Matt Wilson) I once pushed this hard for namespaces. Then, after years of it being = shot down, they did it.=20 And now I'm sad. It didn't occur to me until after it had been = implemented how bad an idea it was for php. I think this is one of those = times. Type hinting is wonderful, but i'm not sure you could really make it fit = in php without bastardizing the concept.=20 The last time I looked at this discussion, I saw something about = call-time silent type conversion (essentially foo((int) $bar)) and if = that's not bastardizing a concept... I think the community has spoken. And when the core devs put their foot = down, I think it's best to listen. If it's so important to you, then by = all means, fork. Or simply write a patch. Put it to a vote. But this is = beating a very dead horse. -M On Feb 29, 2012, at 4:36 PM, Kris Craig wrote: > I agree. I'm against strict type hinting as well. Of course, nobody = here > is suggesting that we should go with strict typing, so it's a moot = question > anyway. >=20 > --Kris >=20 >=20 > On Wed, Feb 29, 2012 at 2:35 PM, Arvids Godjuks = wrote: >=20 >> Please.read my emails carefuly. What i said is last time the work has = been >> done, and two different patches have been developed and iterated. But >> dificulties in implementation and strong resistance from the devs and >> comunity got it killed. I actually had a post on our biggest russian >> speaking IT resource and results shown that majority of comunity was >> against strict type hinting - it does not fit PHP philosophy. Simple = as >> that. >> Thats all, if you cant unders >>=20