Selon Peter Ashenden <peter@ashenden.com.au>:
Yet another suggestion.
Instead of
*condition* ::= *boolean*_expression
| condition?( expression )
Where condition? is called by the compiler when the expression does
not resolve to boolean.
Why not:
*condition* ::= expression
Where a "??" function returning a boolean is implcitly called with the
expression as only argument.
Of course, a 'function "??" (a : boolean) return boolean;" has to be defined.
Things would be more orthogonal.
Tristan.
Received on Thu Dec 2 00:57:33 2004
This archive was generated by hypermail 2.1.8 : Thu Dec 02 2004 - 00:57:34 PST