Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44927 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79676 invoked from network); 10 Jul 2009 16:15:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2009 16:15:33 -0000 Authentication-Results: pb1.pair.com header.from=m2ys4u@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=m2ys4u@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.78.24 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: m2ys4u@gmail.com X-Host-Fingerprint: 74.125.78.24 ey-out-2122.google.com Received: from [74.125.78.24] ([74.125.78.24:60795] helo=ey-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/A9-37812-429675A4 for ; Fri, 10 Jul 2009 12:15:33 -0400 Received: by ey-out-2122.google.com with SMTP id 22so204612eye.43 for ; Fri, 10 Jul 2009 09:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=MVhox1Y7sPu4iwG3YgnZf06cx+JfShJQFlRljdIzSQ8=; b=OBpknNPcpCikn9Jq/6MR8Z6xRw44zcUl1j/X1tjLPnmG4D1MPOw4AlvQVrsw7v3axa b9aec0P4nHb1aVJ9rZhjikHUMQEr3MHM6ti/4K8+j0lyfCg7Or0bkwoggG7fXnv9h9x4 vcANDxuDwK9GDrPjz/AvJXb5e/NB6rzMluv1A= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=kj0D1guhbFcKth1yjPJAqcItIt9pR1tZ+6gx49sKLDHmTc+Nrgfqy9KUJpyrW8o31b RxRlfI18McY+c8ohj3HmMwVl/nrj25CXfE2VzvrbEA1i7P4yDeS49atQFDiEwMScLAjG jIrs3m5Cw/+YYzn/kjiGkcIESepRWFkVEpszU= Received: by 10.210.128.5 with SMTP id a5mr1406651ebd.50.1247242530134; Fri, 10 Jul 2009 09:15:30 -0700 (PDT) Received: from ?192.168.1.107? (cpc2-rdng12-0-0-cust242.winn.cable.ntl.com [80.7.4.243]) by mx.google.com with ESMTPS id 10sm3003557eyz.11.2009.07.10.09.15.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 10 Jul 2009 09:15:29 -0700 (PDT) Message-ID: <4A57691F.9010309@gmail.com> Date: Fri, 10 Jul 2009 17:15:27 +0100 User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Alain Williams CC: Alban , internals@lists.php.net References: <7.0.1.0.2.20090708224156.0ac5a438@zend.com> <312025EF-84D0-4411-A0A7-4F0379C3105F@pooteeweet.org> <13.B7.23850.208375A4@pb1.pair.com> <20090710132324.GM19636@mint.phcomp.co.uk> <98.71.37812.2D6575A4@pb1.pair.com> <20090710151651.GR19636@mint.phcomp.co.uk> <48.78.37812.B23675A4@pb1.pair.com> <20090710160845.GT19636@mint.phcomp.co.uk> In-Reply-To: <20090710160845.GT19636@mint.phcomp.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Type hinting - Request for Discussion From: m2ys4u@gmail.com (Jack Allnutt) > *You* do the above because you know that you should; (hopefully you do > other checks as well). One of the things that we are doing is trying to help the > naive/lazy programmer who doesn't bother - or thinks that javascript checking is enough :-( > > What we want to do is to generate an error/warning message that can tell him > that something is wrong. Bad programmers write bad code and will continue to do so irrespective of type hinting. Better documentation is the answer to that problem, not magic casting, IMHO.