Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109715 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 64021 invoked from network); 20 Apr 2020 12:46:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Apr 2020 12:46:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 27EB61804CE for ; Mon, 20 Apr 2020 04:18:04 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_40,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 20 Apr 2020 04:18:03 -0700 (PDT) Received: by mail-ua1-f54.google.com with SMTP id s5so3448440uad.4 for ; Mon, 20 Apr 2020 04:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=p5lwwd+UFKSLpvovXIx33o0t/+K0IkGCcuZ1p3Oxjsk=; b=d5rj5YzI0GZ1nqHIwX4GkoBxZbJ0SKIEPBxF64hMBygYimmOJwLpuIvsOrw3k7k+Hy lrKbNTnjrXfz6eDDmYq+YJJSjOq+yyAz6FWhpYe3yZD1AFHW2+idPl52YbqCxzMw4d3J klviceVzncIgmzModvG4qr3Qg3SZkipST6vlc9jB4ZAccPVZOQUsSrrBbKj01s7VhNbR ru03x2NmYz3kXjR1EqTaIlSg+ah2KSXUpDIby5Gqyo5YB+cmweuMVfKTDgD5LlQk/XCu JEPlW87+7/+bOUxcZTIlandFqtGvQgl5pIq0dbXXv6v/hjJBMbWCsM4bdWlQ40g+1bme FkVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=p5lwwd+UFKSLpvovXIx33o0t/+K0IkGCcuZ1p3Oxjsk=; b=Q5aEsDbPdr5PBeh32h2niAZ6VDtX3DPhFv/gJ1zEpwX+saYMPIhzRk665rFxtT2jSS sHqDwH16U0YiIszus7LjJqnVSvIpHNiAs1hGC9OB9r/uVlBDmD8xGxQMgx3OlI7QExRM Z7bEDC6VAiWqSCGo3DZnLMZ1mMNouiFP0fVIVF09EGyOpolyzhPbbgfpDlHu4L0b3Um+ zfLsDSfzqk3yp6vEY14v90y2/r2T77f0+VfCXYDp34xofBxKlCH/ryXNPFXM726hTCWO y5LpET+Q4N6Vjdk1LZKJexBWfjzZnykfTb/bkwzX5tleS0dgYnhgKxbQ7ZtGgT2wFL4B 8mMQ== X-Gm-Message-State: AGi0Pub7oqnPHrllNaw7N/jYPxI9hpGhIaMdpPo8J1KcUEe1y/0gaIhc BVFRacnfCCVerHfddNOIigX7pstlf/+n5+nygM1VIf/ZRWijIg== X-Google-Smtp-Source: APiQypIOdY7MbVuk5gLZ/pxKveXmn9q9/tH8pOEAbCEDyb4WjyYtwsBN9tzKHV84uSBzv1FoE07yPetU4yZCBTPoxUI= X-Received: by 2002:ab0:3352:: with SMTP id h18mr7256676uap.61.1587381477219; Mon, 20 Apr 2020 04:17:57 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 20 Apr 2020 12:17:46 +0100 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: [RFC] Mixed type From: Danack@basereality.com (Dan Ackroyd) Hi Internals, Here is an RFC for adding a 'mixed' type to the language: https://wiki.php.net/rfc/mixed_type_v2 The RFC builds on an earlier draft by Michael Moravec. Part of the motivation for pursuing this RFC was my recent experience in upgrading an application to PHP 7.4. Being able to add types to the application made the code much easier to reason about, but there were places where I couldn't add type info due to the lack of mixed. That made it hard to see if that piece of code had been upgraded (but type info couldn't be added), or if that code still needed to be upgraded. cheers Dan Ack