Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102171 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36104 invoked from network); 5 Jun 2018 15:27:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2018 15:27:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=tendoaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tendoaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.193 as permitted sender) X-PHP-List-Original-Sender: tendoaki@gmail.com X-Host-Fingerprint: 209.85.213.193 mail-yb0-f193.google.com Received: from [209.85.213.193] ([209.85.213.193:43128] helo=mail-yb0-f193.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/00-62758-0DBA61B5 for ; Tue, 05 Jun 2018 11:27:13 -0400 Received: by mail-yb0-f193.google.com with SMTP id w3-v6so905285ybq.10 for ; Tue, 05 Jun 2018 08:27:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=dvHznHGDELv6m9cU+BFpOGUcIttdeqBHBgP54plp5nY=; b=jTkIgfyAbwrnCxCKzZ9IsvBvFkgHNttOvR5oP2SvVqPxtXNfPJptV65t5Z+vc9vU9B hIgAIjIbssMDKekOnhqGXkUHKZB7WbTRyNlh60aPXWOwKdBOc+0z8b+tBOoR4kqG0iz/ fAhq3LR6zY4IYlXq3gPcaTeYYV0EKsV7Ml0V+MsE3A6cYlnUs5cbgqB1UU9bvGieVsit sUe7EVRo+omXSxITqTsLbE5NBRNkz3lzG6mtJz/tAGPxuB8O20jHGuaP6Qr7SyXumChA az4Ci13ELxbyGHzRWV7M7DevGk/SeBfhlF4WIzc1BK3dtJXnF1wnEaYml7k//ooJCV5w LWHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=dvHznHGDELv6m9cU+BFpOGUcIttdeqBHBgP54plp5nY=; b=BFTmM5A2sLhRp0SqPph5sVRoMbhH5WMUWCUrWxTqIfph2p3DihGRk4pl2JUSZ3Zm/D X8KkgkIjv5hSqHK1WUtUdCYB7vqIE3r6QGp67YqgxkyOoThkTL4RG5m2TvFLStXDWgJP xbxTK24DAL7iVX8E0o75UzKtEcbRnbVWb5RPXFaAMu200V7IwQTkDkMrsvPCGvoyCapw y5wq7QfRKzP/lHKf/N45+qyKh+suw8I9oLBo+bC60wZZZqpvjGJPp+G2fjdUExOKl/3N VoJPONoZzmbDDCvbiAEGIt+y/2BO3VRP7ZaHd+I6W61oE6K6UWDIyCn+jZLOHgF0newq fiHg== X-Gm-Message-State: ALKqPwdNlZnxAyUOLwNEaHYsrBrrVeoB4bMwK/+4RUxUMvs7jVapWHh/ zXB0zmKzoSskAynMI4iIv+jviqpofqgiwWPoFgc= X-Google-Smtp-Source: ADUXVKKrarpa26Kl/beoeegukdABIERTNEcAJcn7OW9Z9nEdsvyv3Sj/Y6zq5hNZ5e+nboXStVY1gKqCQ6ied4QlHvk= X-Received: by 2002:a25:8b04:: with SMTP id i4-v6mr13806898ybl.472.1528212430062; Tue, 05 Jun 2018 08:27:10 -0700 (PDT) MIME-Version: 1.0 References: <0d108361-f5fa-fe76-b6ad-66e23bfa88f5@loot.at> In-Reply-To: <0d108361-f5fa-fe76-b6ad-66e23bfa88f5@loot.at> Date: Tue, 5 Jun 2018 10:26:57 -0500 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000000907ae056de6af59" Subject: Re: [PHP-DEV] Better types without runtime checking From: tendoaki@gmail.com (Michael Morris) --0000000000000907ae056de6af59 Content-Type: text/plain; charset="UTF-8" On Tue, Jun 5, 2018 at 2:22 AM Rudolph Gottesheim wrote: > There's always a lot of talk about types in the PHP community. > Specifically, many developers want property types, generics, function > signature types, union and intersection types, and more. Those talks > (and RFCs) always end with the same result: "We can't do it because > performance issues." > > Has there ever been a discussion about adding some of those features > syntactically, but ignoring them during runtime? At least until someone > finds a performant way to check them at runtime. That way we could have > advanced type checking in our editors at least. > > The idea will sound familiar to TypeScript users. It works great for > that language. > It's an interesting compromise, but I worry about the confusion it may sow, particularly for incoming programmers from languages that do enforce such things - such as Java. --0000000000000907ae056de6af59--