Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109819 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 96289 invoked from network); 23 Apr 2020 17:55:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Apr 2020 17:55:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D4872180544 for ; Thu, 23 Apr 2020 09:27:37 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (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 ; Thu, 23 Apr 2020 09:27:35 -0700 (PDT) Received: by mail-yb1-f179.google.com with SMTP id v128so40096yba.0 for ; Thu, 23 Apr 2020 09:27:35 -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=R6v1JR9LwFVdYMXRdEZY6nEeUZdIkRtxcyqxwx0twLg=; b=iSMNJtGZPmrKx3C31BXmom3hHltPjp7xV/GtFle17G2v9PI2fG2C4Gj/81Xbueh4RC T/DEOXLSswHdwJZBpik/rJOs70nlbX9ZZUg2VZSu+VcBFkezKUVIiWv/G2aIMrapPKIv M8SaTxShOqGj5Yvtx5AKogZKar2UBJIuG8z7xlV0jKY8au8KLnSrY87LmDFBXAgJedwr y/0mnllr1xzmvyBbDPY79GK0w3RDl6d/DKhuguP9MIqoqvSKV1hd7zDYuOGbGidwYFLb EkGl0sIA641Iti7/7cCD3866IWMfmCLBnyIxeJX20399rXPy2kT9s1C/IpyZHe+WdLxJ LZgA== 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=R6v1JR9LwFVdYMXRdEZY6nEeUZdIkRtxcyqxwx0twLg=; b=dKf8jhAag7cgDsTNBm7cbhJYjSlDbOJrDgIxkYg6ti9Isi4+bBprWcfq9XXtDe1LPO xIBLU7D5BxhXGxcj0Gz3+pn0bZL6vUqudCM81yTHXpWi4ARjZUomC9YFiOKpWbFrn10A cOd8cjwswYswJ0PlmbuziwagyRMI1q1WvvxHLGuWl/9xc6YsFaCxjiuaGFVsxVAvukip UDGnj9wG+S4Mw++qtHQbA24FVxzE1PZ9ZNuAYkl+LqMrO3FUfZ4FeANzrUGtyir9DNnC YmR75aKV+wZWdGQvBUIQgeoQ6Zr2byKD0kmYVmPD6lG8ooksrsm/LPs1y6XYs9GqrS26 glwQ== X-Gm-Message-State: AGi0PuZkYe916ZVkrdEbBwhaVP9IJ/nPv02dhxkW0SvD2uNoa9OPjSQQ XRaaIJu5BZ/rjW9L2s331OSQlIOj7yBMkTQFdJdynQFq X-Google-Smtp-Source: APiQypJWqylVrJibiTqQAh3KN5RFcl0J+ULgZfA9y9WHIsR0Nxc+JvQYxcOjGjT54RxIw4Eki0qlcryGmnXcTQdbbkk= X-Received: by 2002:a25:ba81:: with SMTP id s1mr8401570ybg.114.1587659253360; Thu, 23 Apr 2020 09:27:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 23 Apr 2020 18:27:22 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Mixed type From: tovilo.ilija@gmail.com (Ilija Tovilo) Sorry, I don't know what's wrong with my mail client, it just sent the email with no content. Here's it again. Hi Dan > 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. I don't have a whole lot to add other than I appreciate this RFC. We currently can't differentiate between "I didn't bother documenting this" and "yes, I actually accept all types". One note: I was wondering if the following code throws an error (it does): function foo(): mixed {} foo(); //> Uncaught TypeError: Return value of foo() must be of the type mixed, none returned I found the answer in the tests. Might be worth mentioning in the RFC. Regards, Ilija