CoercionFabl includes type coercion - that is a mechanism that automatically converts
an expression
E of type
T0 to a new type
T1
when
E appears in a context where
T1 is expected,
and where a coercion from
T0 to
T1 has been defined.
There are two data type coercions:
int coerces to
double, and
id coerces to
string.
Also, if
C0 is an OWL subclass of
C1, then
C0
coerces to
C1. In particlar, every class coerces to
Resource.