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.