Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82873 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3880 invoked from network); 16 Feb 2015 18:46:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Feb 2015 18:46:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=sd@sven-drieling.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sd@sven-drieling.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sven-drieling.de from 178.77.76.68 cause and error) X-PHP-List-Original-Sender: sd@sven-drieling.de X-Host-Fingerprint: 178.77.76.68 energy.rubisco.eu Linux 2.6 Received: from [178.77.76.68] ([178.77.76.68:50443] helo=energy.rubisco.eu) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/4A-36518-90B32E45 for ; Mon, 16 Feb 2015 13:46:34 -0500 Received: from main (dyndsl-031-150-010-187.ewe-ip-backbone.de [31.150.10.187]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by energy.rubisco.eu (Postfix) with ESMTPSA id D9C2711B7C001; Mon, 16 Feb 2015 19:46:30 +0100 (CET) Date: Mon, 16 Feb 2015 19:45:22 +0100 To: Arvids Godjuks Cc: Daniel Lowrey , Zeev Suraski , "internals@lists.php.net" Message-ID: <20150216194522.5c872236@main> In-Reply-To: References: Organization: Indy X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: I quit. From: sd@sven-drieling.de (Sven Drieling) Am Mon, 16 Feb 2015 18:00:41 +0200 schrieb Arvids Godjuks : Hallo, > Right now we need a breakthrough event - get type hints into the language > at all. The most sensible thing to do it is to add basic type hints that > work like the current conversion rules, maybe add some notices/warnings for > some cases. Or adjust the conversion rules themselves in line with the new > type hints. Split a scalar typehints RFC in several smaller RFCs, problems, questions, discussions? - Should PHP support scalar type hints? - What are the advantages of the typehints for objects? - What are the advantages of strict/weak types? - Be aware of the type handling of internal functions: - float silently converted to int str_repeat ( string $input , int $multiplier ) echo str_repeat('a', 3.7); - ... - Validation of user submitted data in frameworks is already strict type checking - ... tschuess [|8:)