makam icon indicating copy to clipboard operation
makam copied to clipboard

Report more valid errors at once

Open suhr opened this issue 4 years ago • 1 comments

It seems that Makam follows the “fail on the first error” approach. It would be much nicer if Makam could report many valid errors at once.

suhr avatar Mar 04 '20 10:03 suhr

Makes sense. An incremental improvement that would not require a ton of changes to how the core type checking works is to report errors for all definitions, past the first one that fails.

In terms of type-checking a single definition, reporting multiple errors would require significant changes, and is made more difficult by the presence of type-based constant overloading -- it could result in a large number of error messages as a result of a single error.

astampoulis avatar Apr 24 '20 14:04 astampoulis