Re: Unifying logical operators

From: Date: Tue, 10 Jul 2018 18:37:00 +0000
Subject: Re: Unifying logical operators
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-102724@lists.php.net to get a copy of this message
Den tir. 10. jul. 2018 kl. 20.22 skrev Larry Garfield <larry@garfieldtech.com>: > "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

« previous php.internals (#102724) next »