Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49301 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 682 invoked from network); 11 Aug 2010 00:36:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2010 00:36:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=phpwnd@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=phpwnd@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: phpwnd@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pw0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:65338] helo=mail-pw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/62-20356-780F16C4 for ; Tue, 10 Aug 2010 20:36:23 -0400 Received: by pwj8 with SMTP id 8so2168436pwj.29 for ; Tue, 10 Aug 2010 17:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Y5ndSiaJXI5PZMOnr7LTArI+M08LgRDfE/G1DJszZEA=; b=Qr6uI3lYSgBs7Eh9w+piTIF7b/UGZCEcfyqz1dnyeOH5uLoqzIOHM9PZFnFOeuB0GN KMdsFNO5crP/hjfiDI59EIR8QRaALQu4o9jxL8USCSlXWdWeZ0ead/zVsFec29fxJfBk RUyw1ks9ABho3s8Zr783iNNDAjV9KlawEYk3o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=KdGDGMPS4g5/i5B0uKryn2Iii6/SIXnGUr/ho8ZyYXBiaz79rDzqN71QqWV8qBdXld +Ry7anQptM/cv/ZMfX/29iKN6RPaq3FlvHCp1mNUll1mFceDHyavmxL/EHHZ83rfvoYb VBknAfSbwBZTpKUdKbIM9OH9Q0kSRzKvpxRhE= MIME-Version: 1.0 Received: by 10.114.93.19 with SMTP id q19mr21156462wab.206.1281486980522; Tue, 10 Aug 2010 17:36:20 -0700 (PDT) Received: by 10.114.154.9 with HTTP; Tue, 10 Aug 2010 17:36:20 -0700 (PDT) In-Reply-To: References: <1281478269.6608.292.camel@guybrush> Date: Wed, 11 Aug 2010 02:36:20 +0200 Message-ID: To: Arvids Godjuks Cc: Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Typehints (was Re: [PHP-DEV] Annoucing PHP 5.4 Alpha 1) From: phpwnd@gmail.com (Josh Davis) On 11 August 2010 02:13, Arvids Godjuks wrote: > Remember the main PHP principle? KISS. So keep it, blody hell, simple! Please try to realize that what you find simple may not appear as simple to everybody else. To me, typechecking is very simple: if type equals typehint then ok else error. Very simple. Describing the rules used when juggling types takes several pages of the PHP manual and some conversions are undefined. And from what I understand, the proposed typecasting typehints use slightly different rules. I'm sure you understand how one could see that as "not simple."