Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93783 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8492 invoked from network); 4 Jun 2016 20:38:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2016 20:38:43 -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.218.68 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.218.68 mail-oi0-f68.google.com Received: from [209.85.218.68] ([209.85.218.68:36131] helo=mail-oi0-f68.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/DB-25194-25C33575 for ; Sat, 04 Jun 2016 16:38:43 -0400 Received: by mail-oi0-f68.google.com with SMTP id n3so2549230oig.3 for ; Sat, 04 Jun 2016 13:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=ji08x90NDQho466sjUQivknCg0e5T/cOmKQ1fiy57Ds=; b=IUHIhubKf/orGDhaHGTUW2c3aboZ2KrhFBczvXpq3he0vfqXbc6RuPpA3oNbUm4LOC S8PsZoDD/5Hb78yEKI2+T7Zg1l0V6MfJw2m2bIzUoO5mZe9BfAI/1dbPhIBRUU42rbaF peX8jRzW7xuWAAIlLhPv1V8DrHvKMz7vOPLUJOedbnYxLTgcKHaHL+dHdDVXyP+ZOTPP fEYoTqI70uEcMVFF5xjszVnKK7tEqNVpD2hIRemkshro6oIWjAe9ofiTQjOnq1R0EJwv vOxkugeY+o2wW50hvKnEOwIqFOP+5cnQX8yUrCXyml3wtWt8+E4OfGMBrXURmwwLNsVK 1oiw== 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:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ji08x90NDQho466sjUQivknCg0e5T/cOmKQ1fiy57Ds=; b=kA4PLT7MLcwfnnE9EcIQ/9iy44DNXTVRcF4WBWWldhSdWYl07jujHr+islbsHU91na 8nPOQmDKp20QQBJGZuRVO7oPssBzdR/9zt94c3JEe713jIdKoI+GjE8yOwYWyyQIE7pi oYvY3k37coOVVQ5vr3wy6DIZ4f9RdtzwzFPOhlIuMVlk1ieRZJoQRZzXk1wnLRIkNwYQ sl9hhAi7oVD66Ynmjtu3FfXX7LykT/HbmwY6cyCgefdhDnZL3eTByhkJdQuFpfUKv1N5 tLYsvu9Ze097pTdvM53WC2GKF4LegADgKnCiS2Ce2N1F/iKckSv/kkccKJae7TvM93TF QGeQ== X-Gm-Message-State: ALyK8tKmZO8/TaCRlXtEyvJ93XsYl45Vn1vaeqoR1NmQ8gEshrDNKUP8iSM9xQfBIPz5lA== X-Received: by 10.157.44.145 with SMTP id p17mr3265019otb.184.1465072719487; Sat, 04 Jun 2016 13:38:39 -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 107sm6504429otc.24.2016.06.04.13.38.38 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 04 Jun 2016 13:38:38 -0700 (PDT) To: Rasmus Schultz , Sara Golemon References: Cc: PHP internals Message-ID: <94009625-535b-d937-21b6-b454f942a82d@gmail.com> Date: Sat, 4 Jun 2016 13:38:39 -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: 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! >> My number one issue with this PR is that it's all PHP code. There's nothing > in here that couldn't be done as a composer installable library > > It's a valid point, but not really a good argument against having it - the > same could after all be said about a lot of PHP functions. Many of those were introduced when we didn't have good ecosystem for libraries, and whatever is baked into PHP binary is all you got to work with. Not the case anymore. Many others were introduced because it was hard to do it in PHP (no access to some internals, or slow, or required things that code break between versions). Not the case here either. Also, there's a difference between core having 20 functions and adding 21st that is doing something new, and core having 200 functions and adding 201st that does exactly like one of the existing ones but slightly different (slightly enough so you'd have to consult the manual now to see why you used each of them in each context). -- Stas Malyshev smalyshev@gmail.com