Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102883 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89497 invoked from network); 17 Jul 2018 11:19:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2018 11:19:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.215.179 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.215.179 mail-pg1-f179.google.com Received: from [209.85.215.179] ([209.85.215.179:35749] helo=mail-pg1-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/07-37178-3A0DD4B5 for ; Tue, 17 Jul 2018 07:18:59 -0400 Received: by mail-pg1-f179.google.com with SMTP id e6-v6so313957pgv.2 for ; Tue, 17 Jul 2018 04:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TMgUoQG/v0xI5AOyUeJ9JjxguhRuUhwTBKK+gizl3II=; b=n3A7l3so9TsNcfyjmm/9k5qHLByYEMcn09CgcOwnBbWaaPTznrrwEr5lCzZUm+nQmT 1co0qL3Cc50g35ZM/FhONyaJPNlOAOLdLFkeXWCDI6eEC/0amkp63nuN58Te9EVvJllJ 74awreaRszoYNJyQansknoC66nY8FjllkYNniN/5//l3zLGwUFCDbOyfwwSeAtNekX1+ EdLW/B6UMA6Tt83y3apsnFhCSqs8rTTPGz8GCvV5PP0924dPUrVNiBZbbsYSMujEJUMM B1TqnGIIWxw3Inu6nbpBzDyI/0zGnqa4HPQU/HVvUVN9D7dpz58qZF5NxNQQmuVWUcBz 5izg== 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=TMgUoQG/v0xI5AOyUeJ9JjxguhRuUhwTBKK+gizl3II=; b=rSmnMpcPW82nXseZyG7V0vzXk0o5shUihhlYagiMSBA9JQ0WLPaW0nRp/DIj7XrbYD OvbDyrYSni8kOR3FNrGw5onpiMxdKCX9xHPqEDNrnyNz60wkOGzMz1R1W5yDAsovKgpd xk4KJQowt7HlavoEgImnQkE3BJbAaXF+07AMdXHAKsw5juombSoDNCtW0v3XllzNq0CV /blv2ObBBlvedg/YUmkxyOiu8qAo6CBJi+BxJCM6yA6JCCb02dVCOCc/i0n9gonNTeBu wDQjMmAF/Je1qlpLWUq5rbhRmrjfb/1HZd57HcJ4oYthzwbAidLQYaUcDYc2KorDz+tv NcBA== X-Gm-Message-State: AOUpUlFRjIAb59slW5ZblHxpTF7ceNV0XuWDShmeAi7oaYVwEF7ioQ/3 jD1DCvkviY3cPpR7P3NZMiVly4JRhsVI4EcRE8HXRA== X-Google-Smtp-Source: AAOMgpdVSmGc0QXrwOIiMdkIw9VQInrneecRgTMXl/ux/pGzK9CLhRKYrykMgjNLu+J+dt8ZRe1RpA9TVUqZW+RxPKg= X-Received: by 2002:a63:de10:: with SMTP id f16-v6mr1169079pgg.97.1531826335953; Tue, 17 Jul 2018 04:18:55 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:87:0:0:0:0 with HTTP; Tue, 17 Jul 2018 04:18:55 -0700 (PDT) X-Originating-IP: [78.149.14.22] In-Reply-To: References: Date: Tue, 17 Jul 2018 12:18:55 +0100 Message-ID: To: Zeljko Mitic Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Optional typehint check for parameters From: danack@basereality.com (Dan Ackroyd) On 15 July 2018 at 20:39, Zeljko Mitic wrote: > PHP is dynamic language and each typed typehinted parameter has to be > checked every time. If you think your code would benefit appreciably from having parameter types removed, I would strongly recommend looking at https://preprocess.io/ and similar libraries. Preprocessing is used in Javascript to quite radically change what is possible to code in 'Javascript' and has allowed rapid development in how 'Javascript' can be used. For example JSX is something that would never have been approved by the ECMA committee.....but because it was implemented a preprocessing step it never needed to be approved before could get wide-scale usage. cheers Dan Ack