Safety


A language can be classified as safe when for each program, it is possible for the compiler to decide whether one of the error situations might occur during execution: Determines all persons who are employees or managers and are over 50.

SELECT * FROM p IN person WHERE ( p IN employee OR p IN manager ) AND p.age > 50;

This form of query is much more compact than processing both subclasses separately.


      There are four stages in life:    
      1) You believe in Santa Claus.    
      2) You don’t believe in Santa Claus.    
      3) You are Santa Claus.    
      4) You look like Santa Claus.