News for hackers. Stuff that matters.
Re:PHP: \ as namespace separator. What were they thinking? by DougBTX on Sunday October 26, 2008 @06:39PM (#344619)
Which of these would be the same?

   !(!(true))
   ! ! true
   !!true
Having !! not be the same as ! ! would probably be the first case in PHP of significant whitespace.
Re:PHP: \ as namespace separator. What were they thinking? by randallsquared on Sunday October 26, 2008 @07:56PM (#344683)
I would assume that the first would be different than the second two, in the case that !! was some other operator. It's not clear to me whether other cases in which there are double-character operators tolerate having whitespace between them. Is "$name++" the same as "$name+ +", or is the latter an error, or neither? I can't be bothered to check right now. :)