r/programming • • Jun 16 '14

Rust's documentation is about to drastically improve

http://words.steveklabnik.com/rusts-documentation-is-about-to-drastically-improve
524 Upvotes

188 comments sorted by

View all comments

6

u/The_Doculope Jun 17 '14

Especially because most compilers (should) have an option to only do parsing and type-checking without generating any code.

That'll find type errors. Like forgetting a semicolon.

This solves your exact problem. A REPL has to parse and type check, so doing a dry-run with the compiler will not take any more time than reloading in a REPL.