Re: [RFC] Undefined Variable Error Promotion

From: Date: Thu, 24 Feb 2022 02:31:29 +0000
Subject: Re: [RFC] Undefined Variable Error Promotion
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-117130@lists.php.net to get a copy of this message
Hey Mark, For me, there's a fundamental shortcoming of this proposal: - You cannot opt out. Currently, as you describe in your RFC, it is perfectly possible, to opt into making this category of errors fail hard (throw an exception in an error handler). However, should your RFC pass, it is not possible to say "hey, I generally consider this a low impact class of errors, please try to continue". As such, given that PHP is meant to appeal to a broad class of use cases, I am strongly against this change as proposed. Bob > Am 18.02.2022 um 00:28 schrieb Mark Randall <marandall@php.net>: > > Internals, > > Following on from my previous thread, I think we are now in a position where we can begin > formal discussions on an RFC to promote undefined variables to Error exceptions in PHP 9.0. > > I present: > > https://wiki.php.net/rfc/undefined_variable_error_promotion > > I still intend to bring other error promotions forward, potentially in collaboration with other > developers, but as this is the biggest change, and the most likely to attract a large number of > comments, I thought it deserving of a standalone RFC. > > Mark Randall > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php >

« previous php.internals (#117130) next »