Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102880 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76978 invoked from network); 17 Jul 2018 08:30:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2018 08:30:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.41 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.214.41 mail-it0-f41.google.com Received: from [209.85.214.41] ([209.85.214.41:37475] helo=mail-it0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/35-37178-919AD4B5 for ; Tue, 17 Jul 2018 04:30:18 -0400 Received: by mail-it0-f41.google.com with SMTP id p17-v6so697371itc.2 for ; Tue, 17 Jul 2018 01:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vftX5nOFLYcsR2Qa7RD2V5sAzUThqbRjkaUKg9WeRT0=; b=gPBN2Ys5J2L7l/UuV1SFKDsqHhGULIG81vdcJH60SpEFEbxLyr9zTYHvsoCFs6cWM+ LHQ/q315ov3v93JpQt+o+S+OVDsLYScOuHX8asEcGVO1w7lAXI6cwmbKolfaScBLDMyj OzNisAtykaXOPwM5GhFeP9GYiHkuRcD3vaearoWOr+ZXB1mWGSwLgbVme1K0OT/dk3Gf gX9NB1TN5MLaMhnmKC1yKdsqNUkVjNpfSy3QwtY4wtp5uDCfPqaE2HAhzALlRfdh6gnT tpDDXns5Gnx+5cVXH0EMzA2q4Dsj7T6XhnfPvFKLn38oMBUCgk9jgwDgbEqLecY3jlpR IjTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vftX5nOFLYcsR2Qa7RD2V5sAzUThqbRjkaUKg9WeRT0=; b=QrZYvomJxIsr8s+pSh7NN5J0PgBOQR3sd9b7slVEbgxYx1p7gWRbvfmbb86pezPYeI DOBgZI5iITzPELT6ULw40rZLyRNBSxnFjudUZdyOGcrZKZZ2AC5fSsLjVrUH4YC70ZMU 6fS81wbRohLhdBssUV3ZnBXUOqKK6CKh82BYv2Ol+LPE1QD1m6lXJo+gwarPJmlsJhsW Md/QJ4rq++Ql7wjZT6pRmCvfYXJmKuXJkqwEK2Aq1+q/U20Y3ZkDfhd1s0N4InzXYVKI UT3d04/ISHUW6COsgq1eGCGekFkFiRtVsA0gpHSJeD82B4tSSWTLZy55P8erowHdm1Xa yb/g== X-Gm-Message-State: AOUpUlHCBWCVSp5Ro5/CKkeoiOXp849PtOmFJA1FxyI0G98K2fxapFES RhtFrrQApTOlG+JdVz8yem+axys1AKMTAImxDS4= X-Google-Smtp-Source: AAOMgpcRbWyY3C4Razvpu9nq/ZYM+VJS05A+V9k0S1SDiURXuCWh+96odjsP75QTSrmVnVdZ2vANRAa7z7zOayCAZaA= X-Received: by 2002:a02:4d57:: with SMTP id l84-v6mr586352jab.56.1531816214128; Tue, 17 Jul 2018 01:30:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:95a8:0:0:0:0:0 with HTTP; Tue, 17 Jul 2018 01:30:13 -0700 (PDT) In-Reply-To: <1599498.ygS5CM8mOq@vulcan> References: <1599498.ygS5CM8mOq@vulcan> Date: Tue, 17 Jul 2018 09:30:13 +0100 Message-ID: To: Larry Garfield Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000004deecd05712dc13d" Subject: Re: [PHP-DEV] [RFC] Optional typehint check for parameters From: rowan.collins@gmail.com (Rowan Collins) --0000000000004deecd05712dc13d Content-Type: text/plain; charset="UTF-8" On 16 July 2018 at 19:17, Larry Garfield wrote: > It sounds like your main argument for why to even bother with this is > performance. I think you're greatly over-estimating the performance > impact of > type checking. I wager if you just cache a few database lookups and > you'll > get a much larger performance win. For far, far less effort and confusion. > That's true of *current* type hints, but performance has absolutely been cited as a reason not to introduce additional features, such as typed arrays (e.g. int[] $foo or array $foo). I think that's the motivation here, rather than optimizing existing code. Regards, -- Rowan Collins [IMSoP] --0000000000004deecd05712dc13d--