Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101373 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99920 invoked from network); 19 Dec 2017 03:57:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Dec 2017 03:57:14 -0000 Authentication-Results: pb1.pair.com header.from=lists@rhsoft.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lists@rhsoft.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rhsoft.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: lists@rhsoft.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Received: from [91.118.73.15] ([91.118.73.15:10785] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 87/5B-21958-51E883A5 for ; Mon, 18 Dec 2017 22:57:10 -0500 Received: from srv-rhsoft.rhsoft.net (Authenticated sender: h.reindl@thelounge.net) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 3z13xs0hptzXMN for ; Tue, 19 Dec 2017 04:57:05 +0100 (CET) To: internals@lists.php.net References: Message-ID: Date: Tue, 19 Dec 2017 04:57:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-CH Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Mixed Typehint From: lists@rhsoft.net ("lists@rhsoft.net") Am 19.12.2017 um 04:44 schrieb Michael Morris: > On Mon, Dec 18, 2017 at 10:34 PM, Michael Moravec > wrote: > >> Hello internals, >> >> I'd like to propose and discuss Mixed Typehint RFC for PHP 7.3: >> https://wiki.php.net/rfc/mixed-typehint >> >> The purpose of this RFC is to introduce "mixed" typehint on language level >> to be used >> as a valid typehint. > > > If I'm not mistaken, "mixed" is used in documentation when a function has > been overloaded to avoid needing to have documentation for all the methods. > C allows overloading, and I imagine that PHP functions implemented in the > engine using C are using overloading no, mixed is used in phpdoc comments to say "no type specified at all" when a param accepts anything and in case of "@return mixed" that it can return void, array, int..... the RFC would make phpdoc and code consistent