It is obvious that ASSERT A > 2 OR B < 3 when failed should print a message "assertion failed: a > 2 or b < 3. This is trivial to implement with lisp macros, but when the language does not provide programmatic access to the program source code, our ASSERT receives only result of expression calculation - a boolean.
Therefore people must create new expression specification language and duplicate expression evaluation that is already present in java compiler.
No comments:
Post a Comment