Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101374 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6989 invoked from network); 19 Dec 2017 06:33:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Dec 2017 06:33:07 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.45 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.214.45 mail-it0-f45.google.com Received: from [209.85.214.45] ([209.85.214.45:41087] helo=mail-it0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/10-04241-0A2B83A5 for ; Tue, 19 Dec 2017 01:33:05 -0500 Received: by mail-it0-f45.google.com with SMTP id x28so1520681ita.0 for ; Mon, 18 Dec 2017 22:33:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=AiF0Sl4gATOEDmeu1dzGCx2EV/uHaVCLf957h3px5lE=; b=HiaLk56AFYYG1bZq96FJOkvU/asV7QH3Ki9/T12T/5h+qL1sCpgSDKzxwdX9qTI+L6 eSKku2R0hY60yPw8s+Jq+BkSowyWuwRRIBNd+6SPI1LUZv5kC+dcs4azFudMQ6YKrlgK VvS65NjMCpYq75lAMAOwPM6EArkxIoPh2guhWai0c3gc2/V+uORuGuJLLu0cs0epo9DJ WkziGHq92Wub4fzVLD9Db0np9zhp3lRRc7aUqL+96usuj0Ly30myJ2MY91NqBdCnqdTI 0HreZfoMIGQOS2RTh3VyfzPTTBA8/+2vPkIaU6Z/evGdwdwAgQU1c00gXIkrFVI6LgFG ypHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AiF0Sl4gATOEDmeu1dzGCx2EV/uHaVCLf957h3px5lE=; b=CPMW7Fxg95EP/Zx8kxaLaUxvm3wM7jr3zWmDMK9ajwyehwM08bEHD9ZQYplUeykP37 woySTgp9GKSLn7EF+OYCNLd4WICkhaWkE7QQTCDUAn3yqJ97pYbLUmehjQJfDc5thN3J PMXxvQK8TB+U2tev6hep+iDtjv1Q62HA3IEhIJS+pBQSKfGTWirFZ8LzNk46U/4eA3rT L5DFYK6JxkTbe2ylzu9wB+Mh7LR/vtQVeT4I6FttQvcxr0/tQo5UdT6Znjw2SBP+I26L /uqi150mDY6659qkDi1bzQtDD1XfGnchLFTfKifd6STuQTqqPf41B1N5cC/NH00x79/+ 49Cg== X-Gm-Message-State: AKGB3mKFPlkbQuZ5+HuQ8Ai5OOt+gw7MVQDDml5HfPF/Y8XD4dZsKBL6 bf9XU6uSnCLkSX7uxuvX11HG3IM= X-Google-Smtp-Source: ACJfBotSGMo5N6Yx/XJfumaNnYkiwzUtiv3P0QK81XFfIEjAkephSxPFJ+XFfXidrOvNZrKm/54Feg== X-Received: by 10.36.73.9 with SMTP id z9mr1995394ita.88.1513665181148; Mon, 18 Dec 2017 22:33:01 -0800 (PST) Received: from Stas-Pro-2016.local (c-73-71-144-171.hsd1.ca.comcast.net. [73.71.144.171]) by smtp.gmail.com with ESMTPSA id o71sm660805itb.28.2017.12.18.22.32.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Dec 2017 22:33:00 -0800 (PST) To: Michael Moravec , internals@lists.php.net References: Message-ID: Date: Mon, 18 Dec 2017 22:32:58 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Mixed Typehint From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > 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 I'm not sure what's the point of it. "mixed" means "any type". Not writing a type means "any type". So why waste space and add something that contributes nothing when everybody is already using the current convention and the new one does not add anything at all? > mixed, > it should be easy to eliminate this inconsistency There's no "inconsistency" here. > and achieve fully type hinted code. This is not an "achievement" - adding prefixes for the sake of all variables having prefixes that mean nothing is not an "achievement". I do not see any point in it. -- Stas Malyshev smalyshev@gmail.com