Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104315 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 98042 invoked from network); 8 Feb 2019 17:57:34 -0000 Received: from unknown (HELO cache4.mydevil.net) (213.189.55.195) by pb1.pair.com with SMTP; 8 Feb 2019 17:57:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=korulczyk.pl; s=devil; h=Content-Transfer-Encoding:Content-Type:In-Reply-To :MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=teAcIGGZTeIQKZfRH+60X4O1wfyKPiOnDd26Pl4x6SY=; b=RUGeVt1feOOgsruWJbJMjxszbC /7risvx3+5rEETl2j+mUDAX8EOv71767QCYvLcidSXvUukXCxJldBjjXsNweCV9OiWur6IwnNnAMr 11mTxkhvQ+nDr7qXp+0ghXCb/SDAeZRZgbhooL6kwpm1N3oXJRQNyDTBd7hwZtfFRcu4=; To: Marco Pivetta Cc: Rasmus Schultz , PHP Internals List References: <695e24fe-386f-c11a-4bd3-81129cb9ffe2@korulczyk.pl> <42a5e3cb-358a-3e8e-0985-099263a57374@korulczyk.pl> Message-ID: <9974bd0d-fcfe-6a85-fd28-7a61780f055b@korulczyk.pl> Date: Fri, 8 Feb 2019 15:39:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AV-Check: Passed X-System-Sender: robert@korulczyk.pl Subject: Re: [PHP-DEV] Mixed type-hint From: robert@korulczyk.pl (Robert Korulczyk) > Could you clarify on a use-case for changing the semantics of `mixed`? For example storage which does not allow to store null. Like simple cache which treats null as "miss", so it is not able to cache null as value. Obviously it is not a deal breaker and use case is quite rare anyway, but this is just example when mixed type-hint may work as actual type-hint, not just replacement for PHPDoc or equivalent of... nothing. Regards, Robert Korulczyk