Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80115 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36799 invoked from network); 3 Jan 2015 05:33:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2015 05:33:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.179 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.179 mail-qc0-f179.google.com Received: from [209.85.216.179] ([209.85.216.179:53171] helo=mail-qc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/60-32964-F2F77A45 for ; Sat, 03 Jan 2015 00:33:36 -0500 Received: by mail-qc0-f179.google.com with SMTP id c9so13459104qcz.24 for ; Fri, 02 Jan 2015 21:33:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dMRnOLzP31PV+3SET3jLnZHORAj5OrMlUEAqdxecBvk=; b=PtGm9O2FCnnOTvogOwZiyq4mQqLIQlhrwLJIHB2GtieiB+lPznvJ1EV/Lzen5BkWlM D3nlfxP1x8L+zux6b5eze9K5nEtkVmcDPzkySDfZRJM/RjFmGio7N6FAtnOszmkiOMyG 6YT6xEs2Rp7C/M7Bg0dA/LTOhl++Ezv90sIf+GHHv3W3CxUtw3ZuMLX8Ar/I9JTPugac gYDwSlPic8Fwg0HjguN+pgPThoSrzJfUph24td0dUOekENTV1xecVUO8kohbSLch7sha TxOIVsHctsr8PszWnlmu1Rz+f9Pfum6a4jJdiTk/BWmQBbJJKyFDjapInVXzbk93u797 WJXA== MIME-Version: 1.0 X-Received: by 10.140.92.33 with SMTP id a30mr3684633qge.30.1420263213097; Fri, 02 Jan 2015 21:33:33 -0800 (PST) Received: by 10.140.22.106 with HTTP; Fri, 2 Jan 2015 21:33:32 -0800 (PST) In-Reply-To: <54A778AB.6020804@gmail.com> References: <41D5BB0B-73AF-488E-968D-90B2878E3178@ajf.me> <54A778AB.6020804@gmail.com> Date: Fri, 2 Jan 2015 21:33:32 -0800 Message-ID: To: Stanislav Malyshev Cc: Andrea Faulds , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints From: pierre.php@gmail.com (Pierre Joye) On Fri, Jan 2, 2015 at 9:05 PM, Stanislav Malyshev wrote: > Hi! > >> I am also not a fan of errors, exception, at least for methods, make >> much more sense. I know it is relatively easy to handle errors as >> exception but still, let do it right now. > > Then we need to convert all parameter mismatch errors (or at least all > fatal ones) to exceptions. Which I don't think makes a lot of sense to > put in the same RFC but in any case it should work the same way over all > the engine. Otherwise handling it would be a nightmare. I am not sure about that. Parameters handling is one specific case, userland parameter handling even more. It could be a good move to do that as a 1st step, with this RFC. -- Pierre @pierrejoye | http://www.libgd.org