Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125203 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 7A8331A00BD for ; Sun, 25 Aug 2024 07:00:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724569364; bh=rsq9naj4amf3n8Lb9LuZ+/iXKla6Ba6N3CfZVszlmXU=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=GoDDPKx7zacHPCSMLuyU0S5PmzO8+Hkck5G6J9NxxKDb9Lug92TD4aTL0Fjnu7S0x msC9bel/79iRGbAMsn8KxHbbzBKw+FZQ+nwvjxjHBcm7FCuZIoGrK016Wmj/aBtr6M 33+NN3BafyKbtLl2YecTnB/S9K+Cbre+qJs2hQs9RFV4Kj73+tfTrFDddRFP8O7SSE ySQ98MpyCHJ6yKRnaDQ367CMN3js37FmiGGfqPos9xiFU8F4J1OMi7uSP0SAZYoNal u/k1k5y0v86ZMWIoZR+O5xUkvrA40Gdw1HIUHDbXyX+ndL4Iqe+Ww6wWemb5vWGpo8 lMa6pe6B77LoA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 295A1180052 for ; Sun, 25 Aug 2024 07:02:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout4-smtp.messagingengine.com (fout4-smtp.messagingengine.com [103.168.172.147]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 25 Aug 2024 07:02:42 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 0C34A138FF8A; Sun, 25 Aug 2024 03:00:50 -0400 (EDT) Received: from phl-imap-09 ([10.202.2.99]) by phl-compute-03.internal (MEProxy); Sun, 25 Aug 2024 03:00:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1724569250; x= 1724655650; bh=yWHC8A/+hQ5GovYS91askEPz97gRVsfQ0pSAQ25fqDs=; b=S iirSTwr3hxZt0YhIo/FRvoWu4HnDyd+YyBZJiIjUCBS4IFn9NkzxagcIblfDbp52 RCNW79mgRN2Lwja4MT7iIsJ0+vQP+cuf/66F5Dsrf4342NI44g6UZqgn5URUtCty xzesinj9M/hKtDMjfmIuoMaXC0f8hlCUP5kpxyOzqEGyuAt+b45Wc1dJe5UY4DvI KPQpM/nRvjs73SJuYeaywA2U4t8erpMTD+W6Dh1HWu8e+NOUxA+vZDr5DdbVimva r3xA4puZYQpPg5kHgrdu3vH/t7SMNIzJ13R8QRn1mncnsneCN9zw+i5jHYn7ZUH5 7qgujuXq9j6/NhDjhqriQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1724569250; x=1724655650; bh=yWHC8A/+hQ5GovYS91askEPz97gR VsfQ0pSAQ25fqDs=; b=YrFe/eloQJg+SvvMcM7t6WbUXAcb4wmhwNdn2mV4Yp80 ut4TQggDD22zMRP2+tCqvAoeyU879M5TEXGmh8S2qsuEXPjRxKQ1/TBW0/NKzXAy 5x5EUEaRujwa2hS75FvZGkxUPkOV8MIiuh87tlWPACI2+So3vlzPuDiUHXgURkbL L8RnV/1LUTT+4cCHmsujZ3ut0K4j5NlULdLdSQAsWYnAmrqk+YhkPWAUEDdu1ry8 mmfmL5drdLSCqTeiI9ScwwUFKm1ZphMCwU4YDOLU0ztPAqUU9OtB9VktV1EaZ6VZ H7q2Xq8+9Hx/jTiahhWwCR6fLu/zY+B844d84GWaYw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvhedgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefoggffhffvvefkjghfufgtsegrtderreertdej necuhfhrohhmpedftfhosgcunfgrnhguvghrshdfuceorhhosgessghothhtlhgvugdrtg houggvsheqnecuggftrfgrthhtvghrnhepieeuteehvddvfeejhffgieehleehhedthfef keejffelgfevvdekudetjeejtddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomheprhhosgessghothhtlhgvugdrtghouggvshdpnhgspghrtghp thhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsh eslhhishhtshdrphhhphdrnhgvthdprhgtphhtthhopehmihhkvgesnhgvfigtlhgrrhhi thihrdhnvght X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 84ED5780065; Sun, 25 Aug 2024 03:00:49 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Sun, 25 Aug 2024 09:00:29 +0200 To: "Mike Schinkel" Cc: Internals Message-ID: <832b62da-666a-42c6-9651-1aeffdfd1b07@app.fastmail.com> In-Reply-To: <2D8CC37B-9AF1-4F3A-84B8-9B3D9B80C88B@edison.tech> References: <0c8ed5d6-5507-4c41-8d7f-05d14ba8aa4c@scriptfusion.com> <2D8CC37B-9AF1-4F3A-84B8-9B3D9B80C88B@edison.tech> Subject: Re: [PHP-DEV] [RFC] Default expression Content-Type: multipart/alternative; boundary=659d448bf11243f399a558c40824d096 From: rob@bottled.codes ("Rob Landers") --659d448bf11243f399a558c40824d096 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, Aug 25, 2024, at 04:41, Mike Schinkel wrote: >=20 >=20 >> On Aug 24, 2024 at 5:16 PM, > = wrote: >> I'm not sure what you mean here. I use this method all the time :) mu= ch to the chagrin of some of my coworkers. >>=20 >> function stuff($foo =3D 'bar', $baz =3D 'world'); >>=20 >> stuff(...[ ...($foo ? ['foo' =3D> $foo] : []), ...($baz ? ['baz' =3D>= $baz] : [])]); >=20 > And you are one who complains about gotos! =F0=9F=98=B2 >=20 > -Mike Haha, there is a difference between production/professional code and int= ernal tools. Internal tools are a place to experiment and have a little = fun, IMHO. =E2=80=94 Rob --659d448bf11243f399a558c40824d096 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Sun, Aug 25, 2024, at 04:41, Mike Schinkel wrote:


On Aug 24, 2024 at 5:16 PM, <Rob Landers> wrote:
I'm= not sure what you mean here. I use this method all the time :) much to = the chagrin of some of my coworkers.

functi= on stuff($foo =3D 'bar', $baz =3D 'world');

stuff(...[ ...($foo ? ['foo' =3D> $foo] : []), ...($baz ? ['baz' =3D= > $baz] : [])]);

And you are one who complains about gotos= !  =F0=9F=98=B2

-Mike
=

Haha, there is a difference betwe= en production/professional code and internal tools. Internal tools are a= place to experiment and have a little fun, IMHO.

=E2=80=94 Rob
--659d448bf11243f399a558c40824d096--