note 73609 added to language.operators.type

From: Date: Sat, 03 Mar 2007 12:04:05 +0000
Subject: note 73609 added to language.operators.type
Groups: php.notes 
Request: Send a blank email to php-notes+get-124040@lists.php.net to get a copy of this message
Please note: != is a separate operator with separate semantics. Thinking about language grammar it's kind of ridicilous to negate an operator. Of course, it's possible to negate the result of a function (like is_a()), since it isn't negating the function itself or its semantics. instanceof is a binary operator, and so used in binary terms like this terma instanceof termb while ! (negation) is a unary operator and so may be applied to a single term like this !term And a term never consists of an operator, only! There is no such construct in any language (please correct me!). However, instanceof doesn't finally support nested terms in every operand position ("terma" or "termb" above) as negation does: !!!!!!!!!!!!!!term == term So back again, did you ever write a !!!!!!!!!!!!= b to test equivalence? ---- Server IP: 212.124.37.9 Probable Submitter: 88.72.208.244 ---- Manual Page -- http://www.php.net/manual/en/language.operators.type.php Edit -- https://master.php.net/note/edit/73609 Del: integrated -- https://master.php.net/note/delete/73609/integrated Del: useless -- https://master.php.net/note/delete/73609/useless Del: bad code -- https://master.php.net/note/delete/73609/bad+code Del: spam -- https://master.php.net/note/delete/73609/spam Del: non-english -- https://master.php.net/note/delete/73609/non-english Del: in docs -- https://master.php.net/note/delete/73609/in+docs Del: other reasons-- https://master.php.net/note/delete/73609 Reject -- https://master.php.net/note/reject/73609 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124040) next »