Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101795 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67634 invoked from network); 6 Feb 2018 21:28:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2018 21:28:22 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.67 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.67 mail-wm0-f67.google.com Received: from [74.125.82.67] ([74.125.82.67:35512] helo=mail-wm0-f67.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/A9-49805-5FD1A7A5 for ; Tue, 06 Feb 2018 16:28:22 -0500 Received: by mail-wm0-f67.google.com with SMTP id r78so6678282wme.0 for ; Tue, 06 Feb 2018 13:28:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=n7Q2UL18hAxtO5zBaRuWb0LEXDnu/2EbjxHoMRd6uv0=; b=XZIOd9pD0vA3PVGzEQ5iF6VPodREGmeRUVsbhCMEbi9QhsYHVdfNJdFCoZ7WKkslm5 1za+XNZZe1DNPadPwwKU31XVybhVym+GitUENfC0O9BS9gPAzrH5mFF6TEqA01KA3sTJ xsKTD4jXLDsOumhzDTGc+c1dBC1OM/2bpFDPk3WjdNUNRl2ecBgE7h7A4/lcE1SEVQR7 IhhhBIi7ceGJKgYnveXYiOzZgeACs+HwP2MgBdby1fYii4jiT74J8Cy8LWzGG1qvek1n XAF+UMUmXvabKDrMqkrSem6dcy2xc1UhUBLDVUmTBfoNN1ulZh6CL1iGdWLZSMXZAdBz WOWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=n7Q2UL18hAxtO5zBaRuWb0LEXDnu/2EbjxHoMRd6uv0=; b=PNkHRksBqeyVQtkk4aEt3bPSW2egsLffowFKXnN0yyhoBs9iTtDWsT+GZci+apC5kN JXZAL52xVsUn5YasUsyEyK/UKlppHt4oyR6+yvfmqCb4J41gPLZ0wxAJsPuB0/8FANAi krN0/di6dkX73U/CrQICTFCtvIkfWZqsx9t+E3Fm6ukziBXDWji4rDkEl0YeikoezuFJ jmScs384I5cPUmTpRTppXPuP+1WnN/7ed/FBaz4wWm8dC/gM0fMdjjlXWo8jysY2hE6X lsfhK1z5E5sTdMNXuNtFM37aL6cwmqvK7Os2LDkqK9ATRDoo1w1HmBe4h18AySEBp1i8 841w== X-Gm-Message-State: APf1xPDdLl0vmdEI9umD8sKa3K+kKCS2rK5eQMxByILxestuNxXnSHxb OqepL+KpQB5B1cuyH/8HfAJP5w== X-Google-Smtp-Source: AH8x224dBoHiji8Yk1hFgv3JaQ5nSFKhtmFEVvCevVrOodxbG5GEXZOjYH3/04h+I+GK/YPVwonblg== X-Received: by 10.28.183.5 with SMTP id h5mr3028323wmf.14.1517952498827; Tue, 06 Feb 2018 13:28:18 -0800 (PST) Received: from android-c07b90b023759a5a (host31-48-151-88.range31-48.btcentralplus.com. [31.48.151.88]) by smtp.gmail.com with ESMTPSA id n20sm15713127wrb.56.2018.02.06.13.28.17 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Feb 2018 13:28:18 -0800 (PST) Date: Tue, 06 Feb 2018 21:28:15 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: <4026445.Wp3pesFrPl@vulcan> <28100667.gh41XH5Xuc@vulcan> <8241EFDE-7510-49AD-997B-A0FB9B6ABD39@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net Message-ID: <3B9A47E7-4A91-4F0F-B06F-D7A2E35478DD@gmail.com> Subject: Re: [PHP-DEV][RFC][DISCUSSION] Collection Inspection From: rowan.collins@gmail.com (Rowan Collins) On 6 February 2018 21:10:54 GMT+00:00, Michael Morris wrote: >On Tue, Feb 6, 2018 at 2:54 PM, Rowan Collins >wrote: >> I may be being dumb, but I don't get why you keep referring to this >as a >> "hidden dependency"=2E It's a dependency, for sure, but why is it any >more >> "hidden" than any other utility library? >The Dependency injector isn't aware of the reference and is unable to >modify it in any way=2E I've been taught to avoid such dependencies, and >to >avoid utility libraries which create such dependencies=2E OK, I see what you mean=2E But surely it doesn't really have much relevanc= e here, because a function or operator from the language's standard library= is just as invisible to dependency injection=2E In a sense, it's still a u= tility library, just one that comes bundled with the language rather than i= nstalled separately=2E Indeed, a built-in function is even more restricted in what you can do wit= h it than a userland one - for instance, you could replace the userland imp= lementation simply by declaring your version first and not including the or= iginal, but you can't overwrite a built-in function without hacking into th= e engine=2E I'm not saying this undermines the proposal for adding some extra array fu= nctions or operators, but dependency injection and modification are certain= ly not advantages of doing so=2E Regards, --=20 Rowan Collins [IMSoP]