Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102724 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44029 invoked from network); 10 Jul 2018 18:37:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2018 18:37:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.44 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.218.44 mail-oi0-f44.google.com Received: from [209.85.218.44] ([209.85.218.44:42219] helo=mail-oi0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/6A-15421-ADCF44B5 for ; Tue, 10 Jul 2018 14:37:15 -0400 Received: by mail-oi0-f44.google.com with SMTP id n84-v6so44536149oib.9 for ; Tue, 10 Jul 2018 11:37:13 -0700 (PDT) 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=IIi/TbPRIk9YrrPJE74JrhY3M51+9tQB6WiFcLws+TI=; b=Qv3mC5vGOdfS12PXE3lZGL+iEg5Iq6xqT1014id6QWgBQOSBEWNl2NI7M1lQ3CAKkg tLec5s+XgvrNtcF+318AKMPKj4CNMzHonUtPkGH/GBedBxhYsETfYBMst9seb1nEvs+r 5uFE6Sn89Aib7/+skoCJhlg60rLxvg+KV9pkZnPPoZzHaL42A3YB1oXxmWJkxoIA69fy EnJlRLANj1/FURpUIBcG4/CJxnthrgOhq3VKwEnPQfTcG2XkXF105R+3mrT+1h649GWM jQxcnQG1j0doT9++LTyF74liAFOKNVQRuHBtEEyjBhMle/zjLEBTlD6zdzDqJuuLZwH0 AnHw== X-Gm-Message-State: APt69E1zs1e4gTxTo0DflLpZbmIievFrlGvAo20zObiHEFHSXfnu2ZKh 3Dslu4nGsRTPVu+JE5SIp+Xb2QFwVvKvba0x2U4= X-Google-Smtp-Source: AAOMgpcfiW4bQ3ruzU+sREU477XmY9+WI0FYNbk4cX6MXDKR5uB4ccLAMkG9JNgjbZrwFmV5IHpARIjwjNQ5jutZ4OA= X-Received: by 2002:aca:7247:: with SMTP id p68-v6mr30317713oic.252.1531247830548; Tue, 10 Jul 2018 11:37:10 -0700 (PDT) MIME-Version: 1.0 References: <00c2c7a0-432e-0e19-983d-eca6c7cadf2e@gmx.de> <2123664.O6GaDqPnH7@vulcan> In-Reply-To: <2123664.O6GaDqPnH7@vulcan> Date: Tue, 10 Jul 2018 20:37:00 +0200 Message-ID: To: Larry Garfield Cc: Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Unifying logical operators From: kalle@php.net (Kalle Sommer Nielsen) Den tir. 10. jul. 2018 kl. 20.22 skrev Larry Garfield : > "do() or die()" code is/was very common in example code, tutorials, and other > intro material because it means you don't need to think about error handling. I personally wanted to extend this syntax but I never got around to it to support: "do() or throw new Exception(...);", tho its just a code style over: "if(!do()){ throw new Exception(...); }" -- regards, Kalle Sommer Nielsen kalle@php.net