Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106309 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 95189 invoked from network); 28 Jul 2019 15:37:45 -0000 Received: from unknown (HELO mail-io1-f46.google.com) (209.85.166.46) by pb1.pair.com with SMTP; 28 Jul 2019 15:37:45 -0000 Received: by mail-io1-f46.google.com with SMTP id k8so114367464iot.1 for ; Sun, 28 Jul 2019 06:02:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xGg4RlZ2F4ud9UG66pCo51M6WVD8Tr5gGSq7DP5Qkg8=; b=N2Zsd74H6/wWbOlysBSMTp2dP2e7+jEUnZ7beOxfQB8xZk7mWN3WteJK/ZJ3zpEOn1 hNR00GIYcKUDSPmarmpD3+jR4LmTzCfN8OdP362fGuxcgXmc8pAx/akWl3gs/gbVLfjG 0/3Rd2JrN6eUhi8WlVmfSvJ2kyGU4hBz8PC0iSkgsfcmWHgSHQJw+LvdDbj2VStZCmxp fMiXXpXZtf5PRedIDpR4B+xJbbcb/ParhICuIaIfoif23cbdu0yGGjlukSe7Kj4UQ+Mn /M68fxRqiiAIAACU9FBl+Is63XMsdgAJylHh3eJJuZKbQ75wOXkUKehpb9TWn+FN6Aut adbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xGg4RlZ2F4ud9UG66pCo51M6WVD8Tr5gGSq7DP5Qkg8=; b=snie5cgMeChrpc9bhJhqILP+3UfvYJMx/PnP/v9NHlALGIpamPoJqU0WoCDS8pdZgN H7NZsghQtUJo1gbyLQUFZMFgxUEsFyt+Q4p52mTeljMP62CjPWYwsIKKU5ZUiTm5xyXF yWpV9Pv28lvYa/6+GXVcofv5ACmeHWvD8w3aK5xgSR8rOlaXdnx/hYqSMm6II+5v3Z9M 6yVP5YMs00KdhdwLGctD37xRJsiTrv22HaEqLuJ+s5S69PZDOEYg7pJPANmJtq38D3bK UZyBp7NBO7PyvxjoJtb5Jmqp9laAjJGpZBrv1XrPjzsRHZFz9xRyOzPdfVagTTq5TIPu EIqA== X-Gm-Message-State: APjAAAX/1kRm+q1N2EphZDDtRqu/s5v5EI9HLe/UkfGy8U2xk3CIaCdV q5YezprVrKnsuRxb6l13XutT0hD8Kjdyr45myFA= X-Google-Smtp-Source: APXvYqzNzGoxTjDj/CUSSxeuDLLghfow6OYpbYHp7gdwaEVlDDtcqFHCquVjzVIMjSsNjegIy0q/qynpBivUUNrttms= X-Received: by 2002:a05:6638:81:: with SMTP id v1mr57025321jao.72.1564318928820; Sun, 28 Jul 2019 06:02:08 -0700 (PDT) MIME-Version: 1.0 References: <9aba78c9-f04d-45b8-6c34-ad1c2472ef76@gmail.com> In-Reply-To: <9aba78c9-f04d-45b8-6c34-ad1c2472ef76@gmail.com> Date: Sun, 28 Jul 2019 15:01:56 +0200 Message-ID: To: Stanislav Malyshev Cc: Nikita Popov , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000115dfc058ebd6238" Subject: Re: [PHP-DEV] Re: [RFC] Explicit call-site send-by-ref syntax From: ocramius@gmail.com (Marco Pivetta) --000000000000115dfc058ebd6238 Content-Type: text/plain; charset="UTF-8" On Sun, Jul 28, 2019, 04:47 Stanislav Malyshev wrote: > Hi! > > > I think nowadays it is well known that by-reference passing is to be > > avoided and I don't see it particularly commonly in user code. > By-reference > > I don't think it's true. It depends on the style of coding, of course, > but there are many situations where the most convenient solution is > by-ref passing, mostly when single function can change more than one > thing. Nah, by-ref is pretty much avoided in OSS packages, but we can surely survey the ecosystem to verify this. --000000000000115dfc058ebd6238--