RFC: Not Null Assertion Operator

From: Date: Wed, 05 Feb 2025 08:24:23 +0000
Subject: RFC: Not Null Assertion Operator
Groups: php.internals 
Request: Send a blank email to internals+get-126291@lists.php.net to get a copy of this message
Good afternoon. I would like to create an RFC on the implementation of the NOT null assertion operator. Do you think it makes sense to create it? I was able to implement the operator. I've already posted a draft in my github - https://github.com/rekmixa/php-src/tree/feature/not_null_assertion_operator An example of the implementation of this operator can be viewed in kotlin or in typescript. The point of it is that in places where we did not expect null, we should not make additional checks, but use this operator. It will also be convenient for highlighting in the IDE.

« previous php.internals (#126291) next »