Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58356 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98096 invoked from network); 29 Feb 2012 22:05:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Feb 2012 22:05:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arvids.godjuks@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: arvids.godjuks@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-ww0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:49172] helo=mail-ww0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/9A-46815-B31AE4F4 for ; Wed, 29 Feb 2012 17:05:47 -0500 Received: by wgbds10 with SMTP id ds10so663245wgb.5 for ; Wed, 29 Feb 2012 14:05:44 -0800 (PST) Received-SPF: pass (google.com: domain of arvids.godjuks@gmail.com designates 10.180.95.105 as permitted sender) client-ip=10.180.95.105; Authentication-Results: mr.google.com; spf=pass (google.com: domain of arvids.godjuks@gmail.com designates 10.180.95.105 as permitted sender) smtp.mail=arvids.godjuks@gmail.com; dkim=pass header.i=arvids.godjuks@gmail.com Received: from mr.google.com ([10.180.95.105]) by 10.180.95.105 with SMTP id dj9mr4575236wib.18.1330553144630 (num_hops = 1); Wed, 29 Feb 2012 14:05:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=enXeGr6rv9HRnwrVg2g8QN65X0jXEqmypqJHxVL8kk0=; b=lzyIYnVbPQhmVEGdWeq8VQPC+VTVyeW0GqGnaOOAQqCQjtlZgiW8DJEJ981XVcGg/F oqwmWjPJcI9PakGQ39lJQMfgXU3bm8U248+nbZ6aPVjeXUZceMc+8zMjq4AhiG8OPDj1 AOlF6bjZd02RmYOO92TVqP6Sf4jNBUTrS6Nxc= MIME-Version: 1.0 Received: by 10.180.95.105 with SMTP id dj9mr3686897wib.18.1330553144565; Wed, 29 Feb 2012 14:05:44 -0800 (PST) Received: by 10.227.117.1 with HTTP; Wed, 29 Feb 2012 14:05:44 -0800 (PST) Received: by 10.227.117.1 with HTTP; Wed, 29 Feb 2012 14:05:44 -0800 (PST) In-Reply-To: References: <693e15008681dfe7372eaea66214f8a8.squirrel@www.l-i-e.com> <4F4D5D44.5090307@developersdesk.com> Date: Thu, 1 Mar 2012 00:05:44 +0200 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d0442816a89600a04ba218b7a Subject: Re: [PHP-DEV] Scalar type hinting From: arvids.godjuks@gmail.com (Arvids Godjuks) --f46d0442816a89600a04ba218b7a Content-Type: text/plain; charset=UTF-8 Guys, you probably are too deep into the discussion that you haven't noticed an elephant Zeev has put into the room. When the RFC procces was put in place there was a rule outlined - if core devs decide to reject, it's rejected. And as Zeev said last time core dev team decided that there will be no strict typing in PHP, period (btw, Zeev thanks for reminding that). It's open source - if you want it badly, fork, patch and have your party with black jack and girls. Zeev i have just have one question - is it worth trying to get the type hinting "the PHP way" (that converting thing that errors only on really bad missmatches like asking for int and getting an array or object)? I understand the argument that if rules of conversion are not changed, then basically not much is changed. But from the code writing prespective it becomes easier, because with converting type hint you do not need to make explict conversions all over the code - it's done at calll time and that simplifies things, sometimes a lot. Second - the reflection then does not rely on phpdoc to get the types (and i remember there was an issue with opcode caching and phpdoc being stripped and so not avaliable). It good to have array and object hints, but i miss the integer/string/boolean/double hints more times than i want to admit really :-) --f46d0442816a89600a04ba218b7a--