Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102723 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42338 invoked from network); 10 Jul 2018 18:22:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2018 18:22:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 64.147.123.24 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 64.147.123.24 wout1-smtp.messagingengine.com Received: from [64.147.123.24] ([64.147.123.24:53529] helo=wout1-smtp.messagingengine.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/0A-15421-559F44B5 for ; Tue, 10 Jul 2018 14:22:15 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id BD08174E for ; Tue, 10 Jul 2018 14:22:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Tue, 10 Jul 2018 14:22:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=VEB7rvI88Y3h4jX6cAJPxJSldN+MC hiVwYLXBDbLIQ8=; b=kczDIoLj1LYz7MewG4QOWvCdqBKid0Ov0PM1bNwl37Tzn DEGCzscCo9Cle3IAO8aNbq9GcWA6rb/f8U6kaGwMQWISsxRhdDLlkoKuTMUuhdwR XKw3eUtocoK7RYN2Hd+U7exMnpg+I5BOtzYzJKfzyuuApwLQldE84TJUp0VcpA10 LrMNGdB2KrH5WN/b8QPPiA3PZpgDpAzIGMPaJQCj/IhliaDCVwnc3WJ09y40MZJU AHaWu/iue29ung2HE0vXiISmmihSXUStOlQ8bc9FF3H/eSUCegsh4ijDysM97Jh6 Vb2TuVD70I4vyQHIKqAaCGEQ1Q82DWvbV94ZTwo2Q== X-ME-Proxy: X-ME-Sender: Received: from vulcan.localnet (216-80-30-152.s3222.c3-0.frg-cbr1.chi-frg.il.cable.rcncustomer.com [216.80.30.152]) by mail.messagingengine.com (Postfix) with ESMTPA id 007E210273 for ; Tue, 10 Jul 2018 14:22:09 -0400 (EDT) To: internals@lists.php.net Date: Tue, 10 Jul 2018 13:22:09 -0500 Message-ID: <2123664.O6GaDqPnH7@vulcan> In-Reply-To: <00c2c7a0-432e-0e19-983d-eca6c7cadf2e@gmx.de> References: <00c2c7a0-432e-0e19-983d-eca6c7cadf2e@gmx.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart7936745.zWERkPabm9"; micalg="pgp-sha512"; protocol="application/pgp-signature" Subject: Re: [PHP-DEV] Unifying logical operators From: larry@garfieldtech.com (Larry Garfield) --nextPart7936745.zWERkPabm9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" On Tuesday, July 10, 2018 6:09:22 AM CDT Christoph M. Becker wrote: > On 10.07.2018 at 11:01, Rowan Collins wrote: > > While I've not seen it used much in PHP code, the "do this or die" idiom > > is > > common in Perl (which also has post-fix "if" and "unless" modifiers, so > > those are a different feature again). >=20 > It seems to me the =E2=80=9Cdo this or die=E2=80=9D idiom at least has be= en very common > in PHP. There may still be some occurences in the manual proper, and > definitely there are occurences in user contributed notes. "do() or die()" code is/was very common in example code, tutorials, and oth= er=20 intro material because it means you don't need to think about error handlin= g. I haven't seen it in actual production code in about 14 yeas, I think, and= =20 anyone who tried submitting it would get their patch rejected so hard it wo= uld=20 make their head spin. It's a terrible pattern outside of fly-by-night=20 tutorials. =2D-Larry Garfield --nextPart7936745.zWERkPabm9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEE/ph/GXfY8v0YwFBp4MMKwDFxYXcFAltE+VEACgkQ4MMKwDFx YXe7Lgf/QwoHRA4wiYl/sqPXpqdMHyjqoSO0OImwrN4qqdCZadcG9Vj5RJebXhW1 70wel2HHZECUE6kGlc9rSDWsxkHCakTFHmG1+agScvs2rUhiLssMxpeaCO/SDWVQ AG/SgWsQT1RdxHRYGzWt1LMjvPo7tItUxhNd2ZcJ/irGc+imBqVY+sgDS4vi9B71 lrbWHuC3a3LoKiTwBMzssHK1QHWVzSuCE5a3acbi/fz3mvwnrzS0PRROF+5JTjlO 1XXBH91fWBfJE85E9fxYf0+uFNtcmtgJyGBpxXhotrDWf5DFGPTNjf+eWqhNUh4l 3xSjmUO9Wam7EUUQ51pL0/8v9NMkag== =p7Lc -----END PGP SIGNATURE----- --nextPart7936745.zWERkPabm9--