What!
This crate is a sort of experiment in type-driven development.
This crate provides the what!
macro, which very similar to Rust's todo!
macro.
Just like the todo!
macro, the what!
macro passes all typechecks to make
it easy to write/build/test unfinished code. If it ever ends up in a compiled
program, attempting to execute a what!
macro will panic.
The fun part happens when you use the related cargo-what
binary (this may
require a cargo install
).
|
|
Now you can see the type-info of any what!
macros you have in your program.
The what!
macro can also except arguments, which helps reduce
the "unused variable" noise common to traditional todo!
macros
And with cargo what
:
|
| )
|
=
=
=
Emacs keybindings left as an exercise to the reader~