Re: [DISCUSSION] Checking uninitialized class properties

From: Date: Tue, 21 May 2024 01:59:16 +0000
Subject: Re: [DISCUSSION] Checking uninitialized class properties
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-123377@lists.php.net to get a copy of this message
> If we're talking syntax and introducing new keywords anyway, why not go with a new language construct like is_initialized($obj->property) ? It was one of my suggestions at the beginning of the thread. Also, I said that I'd love the "$objectVar->property is uninitialized" (answering to Larry) because of the Pattern Matching RFC ( https://wiki.php.net/rfc/pattern-matching), which adds this "is" checking for lots of stuff and, maybe if Larry and Ilija want it, this "uninitialized" could be one more pattern of this RFC. -- Erick

« previous php.internals (#123377) next »