Open vemoo opened 2 years ago
Actually, it's my intent that we always run programs, even with errors. Part of the goal of the compiler is to be able to always generate something a user can run.
However, if we encounter invalid syntax, or other super painful errors, we could have the program abort when it reaches that point in execution.
While implementing #217 I found that
dada run
executes even if there are errors, which causes this program to enter an infinite loop:I think we should avoid running if we encounter any diagnostic with
Severity::Error
.That can also happen for
dada test
and maybe on web playground?