Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44774 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85678 invoked from network); 7 Jul 2009 15:35:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jul 2009 15:35:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.224 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: paul.biggar@gmail.com X-Host-Fingerprint: 209.85.220.224 mail-fx0-f224.google.com Received: from [209.85.220.224] ([209.85.220.224:41054] helo=mail-fx0-f224.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 99/4E-17523-44B635A4 for ; Tue, 07 Jul 2009 11:35:33 -0400 Received: by fxm24 with SMTP id 24so5011240fxm.23 for ; Tue, 07 Jul 2009 08:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=o9sO79a/pPMi0X+GzOg6tOvti9KEgbywiBtpAZNKBVw=; b=IOVs/rpvWo45qR7ib/jroj5DFI+09FhYegjpTL4rNeI66nQSKQSqwWdDQ9pewwAVxj 1qyjn0CuD452YaU0HEGnjuIfO/HxXFue2WkMMOlE52rZnP5pVZgYjZjrpcsDmbdH1yF4 zWRhBMpFYymI5tUzggxZ3r9483RVI8A70WQIs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=W28khorivIkS/l/G0ryIqc1ZRvfOs2v8wgb1Q8HDw9/8Nhct73R+rKw32GCQ3L9Qmo Tx1ohXuH9+1WOkZYpW1BZflEJALfYbMS3zUv++0t27qsEr4ZQGmJF2weBD5wczfYS16r GyH1wRPlIax33txGyEc8kA99lPdx2OnrpMXnk= MIME-Version: 1.0 Received: by 10.204.59.73 with SMTP id k9mr5826407bkh.167.1246980929603; Tue, 07 Jul 2009 08:35:29 -0700 (PDT) In-Reply-To: <4A536183.407@chiaraquartet.net> References: <2D0F5226-EBCA-4B45-BF01-8ED1C643976C@prohost.org> <4A535468.2000606@chiaraquartet.net> <4A535BEF.8060302@cschneid.com> <4A536183.407@chiaraquartet.net> Date: Tue, 7 Jul 2009 16:35:06 +0100 Message-ID: To: Greg Beaver Cc: Christian Schneider , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Type hinting/casting request for vote From: paul.biggar@gmail.com (Paul Biggar) On Tue, Jul 7, 2009 at 3:53 PM, Greg Beaver wrote: > 2) have 1 syntax, T_*_CAST as in function ((int) $a) {} and have that > mean strict type hinting. I dont think this is a good option. Having features dictated by trying to keep the lexer/parser clean is a bad idea. If the lexer cannot be fixed, I think the better option is to ruin things for people calling things Bool, rather than compromising the feature. (I am assuming that people are still able to call things \mynamespace\bool -- if not, that changes things). Thanks, Paul -- Paul Biggar paul.biggar@gmail.com