Y
Hacker News
new
|
ask
|
show
|
jobs
by
lisper
1293 days ago
Because you haven't finished the whole thing but you want to test part of it before you continue.
1 comments
iaabtpbtpnn
1293 days ago
There's always an escape hatch for this. Even in Java (and Haskell), you can just throw an unchecked exception from your unimplemented function.
link
josephg
1293 days ago
Likewise in Rust you can todo!() in incomplete functions. But it’s still much harder to run incomplete code than it is in javascript, because you still need to satisfy the type checker and borrow checker even for incomplete programs.
link