This is an open-ended project to evaluate and improve the shortcomings of the errors generated by the Factor compiler, parser, and libraries. Here are some well-known candidates for improvement to start with:
The "unbalanced branches" and "___ digs arbitrarily deep into the stack" errors, which are raised when the branches of an if statement or loop don't have balanced stack effects, currently report only the lowest-level blocks that don't balance, which are often buried deep inside a stack of standard library combinators and have little relevance to what's in the user's actual code that causes the imbalance. How to select and report the most helpful set of blocks responsible for the stack imbalance is an open question among the Factor developers and will require some experimentation.
Parsing errors often give little hint as to where the syntax error is. A "';' expected but got EOF" error doesn't help much when you have several dozen "FOO:" definitions above it, any of which could be missing its closing semicolon. The parser should at least remember the name and location in the source of the syntax word that threw the syntax error.
Circular dependencies between source files can currently lead either to confusing "not defined" errors or infinite looping in the loader.
Ambitious students could research and improve other inadequate errors encountered by themselves or other Factor developers.
Benefit to student
The student gets to exercise UI design skills designing and implementing useful error messages.
Benefit to community
The user experience for Factor developers improves.
This revision created on Fri, 26 Feb 2010 21:14:08 by jckarter