Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101371 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96768 invoked from network); 19 Dec 2017 03:34:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Dec 2017 03:34:52 -0000 Authentication-Results: pb1.pair.com header.from=mail@majkl578.cz; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mail@majkl578.cz; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain majkl578.cz designates 74.125.82.52 as permitted sender) X-PHP-List-Original-Sender: mail@majkl578.cz X-Host-Fingerprint: 74.125.82.52 mail-wm0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:38323] helo=mail-wm0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/BA-21958-7D8883A5 for ; Mon, 18 Dec 2017 22:34:49 -0500 Received: by mail-wm0-f52.google.com with SMTP id 64so1197152wme.3 for ; Mon, 18 Dec 2017 19:34:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=majkl578.cz; s=google; h=mime-version:sender:from:date:message-id:subject:to; bh=iWK3mCJwD4mpja1QI4IZUuXeLjgF/sMs360aWp7UB7E=; b=oajE2L/dZh5wNbxKvgjNNattdNrGQebxEY1L7bo97XLa5ZU+KkchWPpcUuL1gt6xbu 0YsZerg63/V973Mqj/ED2oBgq7B5vQxMQ7ZjSyz1HK9lXMgJrW0vtO25BKP/aAHXUE5w 7OQyKCNgkU7Z6cYNeiMGcYGWN7scUXmknsaklbZO4uw/vwMdiFeWoeWUYtHyZhSxflut FArWu0m/qiEpy731RdDZZaOQiaQWRNc6CF6GQ408WXhhUIr+WHTkcHIGCHQ+asQ+f4Dz xdu1cia8SpFmnVgfMvbgNN86KTDWY7xmVJoGejkc+Y25u4TbOrj7ElSmjZYn0HSc67ka 9zxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=iWK3mCJwD4mpja1QI4IZUuXeLjgF/sMs360aWp7UB7E=; b=QZ3kc5Poz57OquHNiS2GgltljUtcagSWsMa2F9cfqHfMKyPaIE7gW1SXqzB+g5Morq ch0/vhuHi+jyHXdI7addfHFPBDNZKb8K95XT8y3SIwDjr5Siv9ptabf/oXZc7sSiR75J S8uHx3uBO14wP0hemmEtDZ3jtQxzbKIRW5eHL7JCg3F4AYChHWTDcYW5Zk+jEofHpVpi +mKWO63APiKZLbMIJDMlwj6cz7OLpqhSOHM3wtx84mDeoMP9KOw0ICTXW/xTDzF+T0tA oCqVGGX+SEB/gd4+AZRnmOLV8yxcdvDIgqagmaIm72MHPAaMVQgCI/plRhvHhxnFmogB NDFg== X-Gm-Message-State: AKGB3mKMqvR9udkEl+A/CJnpaaoHWv5ItVyh0eHcc5iXEAIGatoaqp9Q JHHupvmzWNdVz6XEjtvNXth0Su5ZiU2+FQeWMW08n6I9 X-Google-Smtp-Source: ACJfBouPlYv1zY+t/QGubG/vLzuk1lL92nUIpAt1X+5pXK4CrSZaTMm4EzaY2Ya+VueibpJUf04mO7jE7s1bR3nSLjs= X-Received: by 10.28.207.8 with SMTP id f8mr1617340wmg.30.1513654484653; Mon, 18 Dec 2017 19:34:44 -0800 (PST) MIME-Version: 1.0 Sender: mail@majkl578.cz Received: by 10.223.142.202 with HTTP; Mon, 18 Dec 2017 19:34:24 -0800 (PST) X-Originating-IP: [94.113.126.17] Date: Tue, 19 Dec 2017 04:34:24 +0100 X-Google-Sender-Auth: 2Evcgf2KPJ60ME_DdjvX6RlzsW0 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary="94eb2c0d4520deef420560a92596" Subject: [RFC] Mixed Typehint From: php.net@majkl578.cz (Michael Moravec) --94eb2c0d4520deef420560a92596 Content-Type: text/plain; charset="UTF-8" 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. PHP currently forces users to not use any type in case the type is mixed/unclear. This makes code inconsistent and less explicit. With mixed, it should be easy to eliminate this inconsistency and achieve fully type hinted code. It's a simple alias for the current behavior of no type and is fully interchangeable. This is mostly cosmetic change, no BC break to user-land is involved. This RFC comes with a rather simple PR: https://github.com/php/php-src/pull/2603 Please let me know what you think or if you find anything unclear. Thanks! Michael Moravec --94eb2c0d4520deef420560a92596--