Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80453 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66555 invoked from network); 14 Jan 2015 10:14:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2015 10:14:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.173 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.212.173 mail-wi0-f173.google.com Received: from [209.85.212.173] ([209.85.212.173:45897] helo=mail-wi0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/01-61073-69146B45 for ; Wed, 14 Jan 2015 05:14:47 -0500 Received: by mail-wi0-f173.google.com with SMTP id hi2so4178299wib.0 for ; Wed, 14 Jan 2015 02:14:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=BwaJluakC27gtiuHvex41tqdHtT+ccU6D/pHiFkqeDo=; b=hAiJ/omT4SeLh4kh5WFPp1S835eNAEpBqJM+btsBmYcyVIxQnUBjdHJYnmOpMUFWYp Fk0As3c906tOfpxBeIu2gPubTwq3A4DbsVYc+i96wx0WcomYrWPmD1FsQ4ELd0lzvtAL EnQ9sZRbu1OJRt8NH7r0J4S0XgzUCo2XPnQAEMQexvtqmkRv3PNLO845Pu1+qmSRF7JA rRtS6VbIPZlB5B9vXmvXxs7GWTi2GMYjP4ELAA+TIDMIjyqyM1T2+K05iWGneyePpvjJ hEqOVZ61i2LXzl5LiLqVmV9I3MCzF97+vLtjEEIfSv+BR1w7ZB6fMyqf/JyXlnmdSLWo APqQ== X-Received: by 10.180.186.8 with SMTP id fg8mr7275271wic.40.1421230483722; Wed, 14 Jan 2015 02:14:43 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.195.4.41 with HTTP; Wed, 14 Jan 2015 02:14:03 -0800 (PST) In-Reply-To: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> Date: Wed, 14 Jan 2015 11:14:03 +0100 X-Google-Sender-Auth: YzXoL8LIZkvlcNVazSdprupJ5g0 Message-ID: To: Andrea Faulds Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a11c3339a205868050c9a029b Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: jpauli@php.net (Julien Pauli) --001a11c3339a205868050c9a029b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Jan 14, 2015 at 1:16 AM, Andrea Faulds wrote: > Good evening, > > I=E2=80=99ve made some quite significant changes to my Scalar Type Hints = RFC, and > bumped its version to 0.2. > > Here: https://wiki.php.net/rfc/scalar_type_hints > > This is a new thread because I=E2=80=99ve made a significant revision to = the RFC, > so it=E2=80=99d be sensible to separate discussion of the updated RFC fro= m the v0.1 > RFC. > > Please tell me your thoughts. > > Thanks! > -- > Andrea Faulds > http://ajf.me/ Hello, Using declare() IMO, is a PITA. Everything that can be done without the use of declare(), must be done without declare(). I would have prefered different syntax, like the ones we disccussed many years ago , having strict checks with the foo(string $a) syntax, and non-strict check with the foo((string) $a) syntax. Julien.P --001a11c3339a205868050c9a029b--