note 124506 added to language.operators.precedence

From: Date: Sat, 14 Dec 2019 13:41:19 +0000
Subject: note 124506 added to language.operators.precedence
Groups: php.notes 
Request: Send a blank email to php-notes+get-213513@lists.php.net to get a copy of this message
It would be cool to add the operator '??->' in the future. If the object is null then the call to the property / method does not occur. this: $result = $object->property??->method(); equivalent to this: $result = $object->property === null ? null : $object->property->method(); something like that is in kotlin. ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.195 (proxied: 178.76.219.87) ---- Manual Page -- http://php.net/manual/en/language.operators.precedence.php Edit -- https://master.php.net/note/edit/124506 Del: integrated -- https://master.php.net/note/delete/124506/integrated Del: useless -- https://master.php.net/note/delete/124506/useless Del: bad code -- https://master.php.net/note/delete/124506/bad+code Del: spam -- https://master.php.net/note/delete/124506/spam Del: non-english -- https://master.php.net/note/delete/124506/non-english Del: in docs -- https://master.php.net/note/delete/124506/in+docs Del: other reasons-- https://master.php.net/note/delete/124506 Reject -- https://master.php.net/note/reject/124506 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#213513) next »