Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106324 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 53151 invoked from network); 29 Jul 2019 18:11:39 -0000 Received: from unknown (HELO mail-ed1-f43.google.com) (209.85.208.43) by pb1.pair.com with SMTP; 29 Jul 2019 18:11:39 -0000 Received: by mail-ed1-f43.google.com with SMTP id v15so59742836eds.9 for ; Mon, 29 Jul 2019 08:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=2JO46C0X4jQfHaiAeI9K+Q8CBfWVte8BKIJZRiaz1os=; b=aXrTbPzCYiqm2t77Vdf3RbxyzCDBf+KUrg9tgjrAjx3x60CcPCPGMp/qmATVOGpOfD 6zxDvxK6AffhbTndVJKhHWxuwzXXaoZ65T7PlqYKdFekPH55B9gAQTRKVuw8burThtFW amUQQgtBM3L49gwkALy2mawd8F58WoZU0S1UUMJL7Foen1uL612nSEH9WToiAqo5ROtZ 3BQ/DRHSJiQSoqQBvfVc7yr7ClS2GqKleQLP8oLzLca2tspCp31XPOVOmd6TQBo/X39f 81gmntAEUR/iNJk6Gms2e1u6XB9CXA35ihkc2NqA9cGvLAWWEIZuqfVWYroZlymHwj2c GbMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=2JO46C0X4jQfHaiAeI9K+Q8CBfWVte8BKIJZRiaz1os=; b=UBglO5NrshieHUbOV7hOKK7+XNOBIiDMbT75iINah2UTNew0SOE2WZaJ54e28EgcPb 3nr6FEO7uDPihliRQM5Gf4hjrDeBsg8UqB3dGYOzIwmTacrgSymH97U73imUT41J8t/P SvHQqpmDcOK+wsBC0IlpgQHP/GLXUFGrU/c+Xd9qU6UHLKitmx9se5TnnAgbXraRXuhO 5siyyeE9bzRmOBO2EmBWYvRfgAavgcp9hAcUi4awml3Tmfh3+OoYGdJTJf+NRj+xZkqV K9ugzdRTmrloU34UIyUgrvpHv3QbpfVz1jLbof+46TPgVl5e2n9FC256e8ILudeIbe9t QZdQ== X-Gm-Message-State: APjAAAVBzXj0UXYm7PKmCyIY77uTuOMpu+fR+U5WkSMaTCF0QtGNDOz1 4rGOJk6036QbbTl3IU8BrtM= X-Google-Smtp-Source: APXvYqySJU8Yt+z8Y+pUGFKLKiizXS1qFGl+2pP+vFfuFhLVv/vx3QLR+Ac4aH4thPSSC2XFDvxBYQ== X-Received: by 2002:aa7:c754:: with SMTP id c20mr95578741eds.265.1564414579595; Mon, 29 Jul 2019 08:36:19 -0700 (PDT) Received: from [192.168.0.63] (84-75-30-51.dclient.hispeed.ch. [84.75.30.51]) by smtp.gmail.com with ESMTPSA id f10sm16507379eda.41.2019.07.29.08.36.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jul 2019 08:36:18 -0700 (PDT) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_07486AFF-0ED3-49FB-B6C4-FAC95FBD5F37" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Date: Mon, 29 Jul 2019 17:36:15 +0200 In-Reply-To: Cc: Rowan Collins , PHP Internals List To: Nikita Popov References: <9aba78c9-f04d-45b8-6c34-ad1c2472ef76@gmail.com> <75d04139-b944-f204-f988-959fa6f3e305@gmail.com> <8CD3B476-ABF9-4DB7-96D3-217064023854@gmail.com> X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] [RFC] Explicit call-site send-by-ref syntax From: claude.pache@gmail.com (Claude Pache) --Apple-Mail=_07486AFF-0ED3-49FB-B6C4-FAC95FBD5F37 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Le 29 juil. 2019 =C3=A0 16:40, Nikita Popov a = =C3=A9crit : >=20 >=20 > You seem to be agreeing with what I originally said: That by-reference = passing is mainly useful to interoperate with by-reference internal = functions, which don't exactly leave you with a choice. >=20 To be clear: No, I=E2=80=99m not agreeing with: =E2=80=9CThat = by-reference passing is mainly useful to interoperate with by-reference = internal functions=E2=80=9D. I don=E2=80=99t think that every PHP = developer consider that the design of `array_push()` and = `array_multisort()` is flawed, and that they must avoid such a pattern = in their own user-defined functions. More generally, I don=E2=80=99t think that every PHP developer consider = that only the latest trendy coding style is valid, or that every legacy = code not following that style should be rewritten. =E2=80=94Claude --Apple-Mail=_07486AFF-0ED3-49FB-B6C4-FAC95FBD5F37--