From: clubley@remove_me.eisner.decus.org-Earth.UFP   
      
   On 2025-08-18, Arne Vajhøj wrote:   
   >   
   > Considering two operators the same because the functionality of one is   
   > a subset of the functionality of the other seems unlogical to me.   
   >   
      
   The _core_ functionality is the same (ie: a logical AND in this case).   
      
   > C += vs C =   
      
   This is not the same core functionality. Plus combined with assignment   
   versus a simple assignment.   
      
   > PHP == vs PHP ===   
      
   And those two are must certainly bloody well _NOT_ the same. :-)   
      
   Loose comparison versus strict comparison (the latter is also called:   
   how it is done in any sane language).   
      
   The concept of loose comparison should not even exist and helps demonstrate   
   just how lousy PHP really is when it comes to writing something important.   
      
   When I write PHP code, I have a monitor routine I include via require_once   
   that catches warnings which should be errors and turns them into the errors   
   that they should be. It's crazy that I have to do that. :-(   
      
   > etc.   
   >   
   >> It is _always_ safe to write code which assumes short circuiting is   
   >> not in use and it will work exactly the same even in the presence   
   >> of a compiler which generates short circuiting code.   
   >   
   > Not true.   
   >   
   > Not if the second expression has side effects.   
   >   
   > I am sure that you don't want expressions with side effect. But   
   > it happens.   
   >   
      
   Tell me Arne, given what you now know about me, do you really think   
   I would ever write code that had expression side effects like that ? :-)   
      
   Simon.   
      
   --   
   Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP   
   Walking destinations on a map are further away than they appear.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|