Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108715 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 6729 invoked from network); 22 Feb 2020 00:04:03 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Feb 2020 00:04:03 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 50A471804D9 for ; Fri, 21 Feb 2020 14:20:32 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RCVD_IN_SORBS_WEB,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 21 Feb 2020 14:20:31 -0800 (PST) Received: by mail-wr1-f52.google.com with SMTP id p18so58313wre.9 for ; Fri, 21 Feb 2020 14:20:31 -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=v4xGlnHd4N9cH2dZfpNFK5aViUMRoTqCHEzHPjiLpXY=; b=IdPQXpH/L7VRkeubqfzw5zWWfjVLRQVYhiXn8/JB8feg0S6fY+Y8tkfoI0fICuJ9ql 7gbKGyOuP2AmNrSV1h46Of0FSCh4XiL57w+fAJk4zaHcFO7enKSIgezJMFpYdwD/+VJp Tn2Uqwx6KW6RVvNZVLgTO55TRPKgNeZFz6ZsHvb8QY9UBd4ASBBnHZ+7q0E6Irze2KjL 1xRXjnk/bqdFHkgPJYk0CFUEwsXSN9wSfATKDz7YXfja5XQ/M2m4ZfOtOUBcg6Vo4TsW gCuBU46f2oladHDxuLpVyFaTCz7fyMO+kGUaxezqoXfOVmbuknddJjGK372wVXy5EyQ/ VDGQ== 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=v4xGlnHd4N9cH2dZfpNFK5aViUMRoTqCHEzHPjiLpXY=; b=X5nC6I1WTrWcAlt9VSnUzI5XR6Ayr2EeeU1yXlV9ZSaP20HE0SknmmDlLqjfnyVh7y M34Zp9V9hBq1yDz200FRA+qNC8jeWRbTnda9MMNAEfc5cIqH0t4iCmRAvLdE1U8Iptq1 wIgbe1mZdEwKG7x+QittsLwo7GRiF6KWCx7J3yGL/fdxSrpJLafaV7OQ5NlRr8Zn50+T YEVlU+ljHurwp9Z4783YyxngNJbi0LcmaLhcdvvUdmwvKHgt3Eoe5aTb6sJORCf0TP0O AV/sAM18hKuJsmBq5a7mmT9QMHwSK8F8qwI6PvEee9auXOzTK7JqbCIAdzjH74fBI8Gz fWsA== X-Gm-Message-State: APjAAAWM6ZpcHqGz2zTd4AhwiOgZI9R/H1b4g4odYHKUyY1+ofu7AEVF +SGClKS1Eh70hG68alifKt0jfu1N X-Google-Smtp-Source: APXvYqyoAgwP0qVoeeKrR19tfE/h41ZgQqGhT1JgFtBzfYibhuAL2IG8va/P3oowQxISudb0YpSfIw== X-Received: by 2002:adf:f707:: with SMTP id r7mr48927975wrp.194.1582323627964; Fri, 21 Feb 2020 14:20:27 -0800 (PST) Received: from [10.237.147.18] (188.29.164.67.threembb.co.uk. [188.29.164.67]) by smtp.gmail.com with ESMTPSA id m9sm5713787wrx.55.2020.02.21.14.20.26 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Feb 2020 14:20:27 -0800 (PST) Date: Fri, 21 Feb 2020 22:20:21 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: PHP internals Message-ID: <8B2AFC37-9425-440C-B89D-61CBAAB0CDDD@gmail.com> Subject: Re: [PHP-DEV] [RFC] Explicit call-site pass-by-reference (again) From: rowan.collins@gmail.com (Rowan Tommins) On 20 February 2020 14:13:58 GMT+00:00, Nikita Popov wrote: >Hi internals, > >I'd like to start the discussion on the "explicit call-site >pass-by-reference" RFC again: >https://wiki=2Ephp=2Enet/rfc/explicit_send_by_ref Hi Nikita, Thanks for putting the case for this so clearly=2E My instinctive reaction= is still one of frustration that the pain of removing call-site ampersands= was in vain, and I will now be asked to put most of them back in=2E It's a= lso relevant that users already find where & should and should not be used = very confusing=2E There is a potential "PR" cost of this change that should= be weighed against the advantages=2E I'm also not very keen on internal functions being able to do things that = can't be replicated on userland, and this RFC adds two: additional behaviou= r for existing "prefer-ref" arguments, and new "prefer-value" arguments=2E My current opinion is that I'd rather wait for the details of out and inou= t parameters to be worked out, and reap higher gains for the same cost=2E F= or instance, if preg_match could mark $matches as "out", I'd be more happy = to run in a mode where I needed to add a call-site keyword=2E Regards, --=20 Rowan Tommins [IMSoP]