1
Vote

Language Feature Request: Object Verification

description

To build a boolean expression defining some sort of relationship before the going computing.
 
class Triangle requires (a+b>c && a+c>b && b+c>a)
{
factor a, b, c;
}
 
Keyword requires is followed by a boolean expression, which defines the entry criteria the object must obey.

comments