A Tour of Morfa

Boolean type

Morfa has a separate type bool with literals true and false. There are no automatic conversions between boolean values and numbers. In particular, 0 cannot be used in place of false, nor true in place of 1.

The following would give a compilation error:

// var b: bool = 0;
// var n: int  = x > 0;
// while (1) { print("still waiting...\n"); }