Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80571 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34807 invoked from network); 15 Jan 2015 16:59:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2015 16:59:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=leverton@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leverton@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.169 as permitted sender) X-PHP-List-Original-Sender: leverton@gmail.com X-Host-Fingerprint: 209.85.192.169 mail-pd0-f169.google.com Received: from [209.85.192.169] ([209.85.192.169:54980] helo=mail-pd0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/00-34371-ED1F7B45 for ; Thu, 15 Jan 2015 11:59:11 -0500 Received: by mail-pd0-f169.google.com with SMTP id z10so17315181pdj.0 for ; Thu, 15 Jan 2015 08:59:08 -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:content-transfer-encoding; bh=4KsO8yWYk6dczpl6QDMuSUiXyjWFiZcMQ1PG22m19Wc=; b=TmiyXGjEw5/r68vd3Sgim6hpdrvQyXESgUJw4KDdTwEN1A/P6VpdBVRc7uDBJmOLmz Kau3FRNj4tI9K4w61kEnk88Kf8Zw+qyRHAUcvw6VuUDORmyr/Klk7Y1E0BU7Bn6ZA1+j oRxJqMV1dUgAOdJmA4NODsgf8w1bpe6v79QXWrj3HxsyVzVlpoLilSXIdPUJnxAi4Wb+ pLtly5jYxftnlXrrRj1co/fXm0vEorzeKir3tmipm2WsV5Evij2HjcymtDibSIZeApV1 qJb5rjfaLsE74Bg4P8oUgLcU68o0ES7LSV1Wrc1MfFiO2QchyFGiS4OT3JO8vDuAfFU2 0kBw== MIME-Version: 1.0 X-Received: by 10.70.133.98 with SMTP id pb2mr15222465pdb.137.1421341148019; Thu, 15 Jan 2015 08:59:08 -0800 (PST) Received: by 10.70.16.36 with HTTP; Thu, 15 Jan 2015 08:59:07 -0800 (PST) In-Reply-To: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> Date: Thu, 15 Jan 2015 10:59:07 -0600 Message-ID: To: Andrea Faulds Cc: PHP Internals List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: leverton@gmail.com (Matthew Leverton) On Tue, Jan 13, 2015 at 6:16 PM, Andrea Faulds wrote: > 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 from the v0.1 RFC. > > Please tell me your thoughts. > I don't like this at all. I'd prefer raising a new warning type (e.g., E_AUTOCAST) over this. Does the voting system support instant-runoffs? If people could rate their preferences of: 1) strict scalar types 2) weak scalar types (auto cast) 3) both - different syntaxes. e.g, (int) $foo vs int $foo 4) no scalar types we could reach a compromised consensus without some building Frankenstein. I really think having either basic strict or weak types is far preferred to nothing. There are good arguments on both sides ... let the voters decide. After that, additional RFCs could be created to address raising errors on auto case, using declares to toggle behavior, etc - depending of course on what was decided on prior vote. -- Matthew Leverton