Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111075 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 23576 invoked from network); 20 Jul 2020 14:55:03 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jul 2020 14:55:03 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 31C4218050A for ; Mon, 20 Jul 2020 06:49:01 -0700 (PDT) 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_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.176]) (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 ; Mon, 20 Jul 2020 06:49:00 -0700 (PDT) Received: by mail-il1-f176.google.com with SMTP id t4so13334024iln.1 for ; Mon, 20 Jul 2020 06:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kyD0tcGg3AmLAokbVPP98LRGdKL19ft5582/vkmm5qM=; b=M5QLjdH7UWLqKL1FSjuh4FstC4KJwRA1/Xjz/iAt5Mj7/quNVnPBqXnEAhMi8vm9v0 OcEgyj1NT99MHkClLTyxx8yFC2z0p34Sw7BBpaI5OZC7VS4E8XBgond8+iTw8mNXHjeK yTEK1pY2KZ1y/iMfvyctnns7DJTxhYmjcHiLg= 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=kyD0tcGg3AmLAokbVPP98LRGdKL19ft5582/vkmm5qM=; b=qtLkciFlwYUxffIGhovmctJ5z6EOGsC+WP+pALk3jxqd/MDXU9YPkpK4HMm6io4dLG uvI8JaCmSMLc7oEy197fAZSzTqoZ6htXBR/jST6W/dC3Lv6GM4taD2Af2CyuAQF/9ATq ihU5++vpUuMs0UvyR12z1CzEe73SiOCMauy2BsLtjIPAAXpqpjevaqWDixru2hLcTkfw MZbK4fCXV1RPJKZepgfO23FciWTFnO6Xm/75ElAbkERlRAwhu42l332IZ6qLJEPTzHJc BPHdH3Y3D7H1xaZa5LKXTx4/R6QK1bt33AqBBpBSLIWP4/VOlUueH2d9zltlJZRENB6H Ocxg== X-Gm-Message-State: AOAM530iIADIU0OL9xSToX2b86XJPKhEc/LA1+Gn+nudGqD3c0S7D00t sfWjjekl9GCev/USLJCcgr1FbLZ16Fo08nDBEjxEQg== X-Google-Smtp-Source: ABdhPJwBVNaYozbmz4c+XmZHMz6Nx3odkXu3F9hYX+6ZNnPSgLPoI8HEdVaIdmFNpiBpFxROg3gTZf3Hm6Q+D3tBpGA= X-Received: by 2002:a92:1b51:: with SMTP id b78mr23827777ilb.232.1595252939244; Mon, 20 Jul 2020 06:48:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: Levi Morrison Date: Mon, 20 Jul 2020 07:48:48 -0600 Message-ID: To: Levi Morrison Cc: internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Changing default assertion mode to throw exceptions From: internals@lists.php.net ("Levi Morrison via internals") On Mon, Jul 13, 2020 at 11:37 AM Levi Morrison wrote: > > Hello everyone, > > I'd like to change the default mode of assertion failures to throw. > The current default is to warn. In my opinion this is a bad strategy: > the engine asserted that something that is expected to be true is not, > so executing further is a bad idea. This leaves throwing or bailing > out. I think throwing an exception is better than bailing out, so > that's what I propose. Hello, everyone. It's been a week and I have only heard a bit of positive feedback and no pushback. Anyone else want to reply?