You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A statement where a number is expected: FastExpression answers, LINQ throws outside the library #2227
A statement in a numeric position, such as the argument of sin or a summand, has no value in evaluation. Evaluation leaves sin(True) and True + 2 as written. The compilers disagree with it, each in its own way.
FastExpression answers. It carries a statement as its truth value on the stack, so the arithmetic takes 1 for True. That is new since 2.6.0, where FastExpression had no statements; it came with FastExpression compiles statements, provided and piecewise #2209.
The LINQ compiler throws exceptions from outside the library's documented ones. KeyNotFoundException comes from widening a bool to double. AngouriBugException asks the user to report a bug in the library.
iverson is the way to take a statement as a number, and it compiles in both. A statement anywhere else that a number is expected should be refused with UncompilableNodeException, by both compilers.
Activity
A compiled statement asked for as a number is its truth value (#2228)
A statement where a number is expected is refused by both compilers (#…