Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113159 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9399 invoked from network); 12 Feb 2021 20:00:05 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Feb 2021 20:00:05 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5BCDF1804B1 for ; Fri, 12 Feb 2021 11:45:52 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (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, 12 Feb 2021 11:45:51 -0800 (PST) Received: by mail-io1-f42.google.com with SMTP id s24so374313iob.6 for ; Fri, 12 Feb 2021 11:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=MNr2yyMOQC622JwFrkmmTR0jfxAN9DHeXFtPQ7+zxo4=; b=KsywPgZse/m5QTFfmIAtsJojYWOELpJSdFHK4hSyRPje2HSu+SzIuxPvKJiBCJe+No YYDz7FKCZDuFQUlr2d6nUIG/OSCgMXB0Wnu8FVxvUF6o88joOlUIEOykEMBN+wIK7i63 3X/Bq/smW3XisenpypSDGumgJdzwB79mKkGREhySpe4wAEo6LHQN7VJZ2rYAqsi4FoCZ +1QCgH5spis0d2Nu6/b+XZskpx43uNIwUcTuohR4S3pBfqTFJLduVt3Rng/G+TxbP1oj IElpfZ+/fPicQdrkL5/L9FeF40JoRj2TyoGUuQDcft/GZwbiq/irNurj05JJQTgwFgk5 1Nzg== 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=MNr2yyMOQC622JwFrkmmTR0jfxAN9DHeXFtPQ7+zxo4=; b=lQh/4P9gAxEncFf9gTlI/gvg/K4yjwe+f2qv1ILQxdsHqHkoGQa4RDO5T9tiQ/wHym olGi+mNqs60yvnhVdJH2xU8lbw0z+PRLytXmfFlT660stCdmtjXXejQPb0c0jcnldRKG 8W7tHHn8o/3+i6jSNqVn2h55etUyvZtcIBzV0mTQBd5HarUG3LeXyiVCNnUT2sdHXuot H1dOUI9ebW7y6ZlVmHwp7aTN/JoTTP4U+86kwo7NYq8KGgAUpgh8zG51IcK/qFO3iuYu oZS+DreV5IiESZx0AQEv5eH4PzcMrMCBLIXe+EyWwosFgzjG7NGQp6x8YoRF3HXBjV/J CQvw== X-Gm-Message-State: AOAM530fa1YECfbe4fxP0TMmQDiZDm5RM6jKLTDAd0TO2cM4gRCxh2zE 7FC4kadDXof6MoYpmO97L0CHhw== X-Google-Smtp-Source: ABdhPJyLc2ujhGu5xSSTBiNYIAgXt+HiIGMWEugFzJg/ZCbRuTLKRpnWBf1NM0QgpEFMjWz69E0yKA== X-Received: by 2002:a5d:9cc7:: with SMTP id w7mr3412331iow.189.1613159147620; Fri, 12 Feb 2021 11:45:47 -0800 (PST) Received: from [10.10.42.56] ([96.61.105.82]) by smtp.gmail.com with ESMTPSA id q25sm4144955iob.7.2021.02.12.11.45.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Feb 2021 11:45:46 -0800 (PST) Message-ID: Content-Type: multipart/signed; boundary="Apple-Mail=_AD7A673A-2E82-48CA-BB1C-2831DCE0C207"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Date: Fri, 12 Feb 2021 13:45:44 -0600 In-Reply-To: Cc: PHP Internals To: David Rodrigues References: X-Mailer: Apple Mail (2.3654.60.0.2.21) Subject: Re: [PHP-DEV] Inline conditional that returns null if falsy From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_AD7A673A-2E82-48CA-BB1C-2831DCE0C207 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > The =3D> is just a suggestion, other options using existing keywords = is: > return expr() then output(); > return expr(): output(); >=20 > I do not know if other languages support something like that. I think it might be a good idea to check other languages to see if they = support something like this. We could use their examples as points of = reference for discussing whether to include this functionality in PHP. Cheers, Ben --Apple-Mail=_AD7A673A-2E82-48CA-BB1C-2831DCE0C207 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCYCba6AAKCRCwLZeYnIwH G0s3AP9ufki47UTRHoFPs1Mpbb8z75E+dZj15W93vM9CPrifkQEAlNKNdLGenv2H w4FUVVDKTvZsLH+a02kfPnPGYLWavCg= =wCxN -----END PGP SIGNATURE----- --Apple-Mail=_AD7A673A-2E82-48CA-BB1C-2831DCE0C207--