Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93823 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24552 invoked from network); 5 Jun 2016 20:49:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2016 20:49:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.53 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.218.53 mail-oi0-f53.google.com Received: from [209.85.218.53] ([209.85.218.53:35035] helo=mail-oi0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/62-09778-A4094575 for ; Sun, 05 Jun 2016 16:49:15 -0400 Received: by mail-oi0-f53.google.com with SMTP id w184so199418329oiw.2 for ; Sun, 05 Jun 2016 13:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=Oy/zPfPgwHC0Uy/Zxb+h5NL3eI576knQRppWtggJ0d4=; b=HONSvxLQ7KnuliVG3zRDNgwcgCKSG+8v5t3H97N9hPQTRh9K19LU7U5bSKOTyKr3AY 2ybyVAfB0TT3zYYSUItPdeYsUstKu5eG9S/u/ereQ1y+W7ZBCOUXW/oS50VfZfrQuA2T Kus/D85p/RFyMr80037Ix0DDHmdDOMXBbHkXSrdpm2JQWiGkBYFxfDT0EGscSVAcY7vH 4Trl4Cv33EaxTZUguHTuSkXSawzUaxPz6IbjhgvYXK6HGfJp6EB/ep09Y5ljBMo0MsMq xjGn4t9Ne29o147ELcxdfk7QUyP0me4IbWPBeiMap5c/nMEchqjSwEAs0DRT9T0d3iva MpCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Oy/zPfPgwHC0Uy/Zxb+h5NL3eI576knQRppWtggJ0d4=; b=gHlA3Tqzetqbu60Da+i59jvVgsxaXv7O8Ood1ZUy8kqO59Fp4EmoaO3roUqrieLxjg yisYfGnzZig0bNtIiLh9k2zOM5VsS+/TaWZ3pNRCLYZFkTiJAQhBB1OUiKiC6Cr/6iZq /fqlRcF9zvA76/4Fm7hONmh2fJtUxXpFoV8oAc8R4GGLyaKp61u5PCRHKarM69/8aAmB AreNHlt2AfV/2ZoMxE4lfH4zyKi+0yyl+kVE3HOS3/Cjl1MWkWqIkHE1MnGBeVmJA0zB 2kNInP2OO2B/3MYh5FKpGLCVKgTqc05FhVkKlhLX7YQVqGGN/BD6SDqmy94BHDcY4Ag9 Jzzg== X-Gm-Message-State: ALyK8tJp6iN36cKLWF76ACF3MNLm61T1eYaQMefEQ1xULiJyBW2guCTPOhjRDtkzpmwDww== X-Received: by 10.157.54.98 with SMTP id w89mr6198351otb.187.1465159751378; Sun, 05 Jun 2016 13:49:11 -0700 (PDT) Received: from stas-air.attlocal.net (76-220-46-95.lightspeed.sntcca.sbcglobal.net. [76.220.46.95]) by smtp.gmail.com with ESMTPSA id 13sm8912968otj.27.2016.06.05.13.49.09 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Jun 2016 13:49:10 -0700 (PDT) To: internals@lists.php.net, Zeev Suraski , Rasmus Schultz References: <94009625-535b-d937-21b6-b454f942a82d@gmail.com> <201cc2a1-045a-b5fb-0bbd-4396146152eb@fleshgrinder.com> Message-ID: Date: Sun, 5 Jun 2016 13:49:07 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <201cc2a1-045a-b5fb-0bbd-4396146152eb@fleshgrinder.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC DISCUSSION] typeof From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > You are completely ignoring the fact that the deprecation and removal of > gettype() is actually part of my proposal. Anyone who continues to use > gettype() should be informed that this is not the idiomatic way of > performing this action and to use the new function instead. That makes it much worse, not better. Having two functions is bad. Having to pass through heaps of old of code, change it, re-test it, re-release it, re-deploy it, all because a basic engine function is being removed - and not because it didn't work for you, but because somebody didn't like NULL being in uppercase - is much, much worse than just having the annoyance of two similar functions. Having two functions would be bad, but tolerable - adding this huge disruption for no reason but slightly changing the output is completely unacceptable. > It might be a /slight inconsistency/ but it is at the same time a very > shameful and sad one. Our language is not able to tell us the type of a > variable! I don't know which language you are talking about, but it's certainly not PHP. -- Stas Malyshev smalyshev@gmail.com