Comment on Compiler Development: Rust or OCaml?parentComments−ben-schaaf3yCan be flattened, to approximately halve the length of the program like thisNo it can't. You're missing the recursive call to `eval`.−nequo3yIt looks like if let guards could help with flattening it in nightly but not in stable[1]:https://rust-lang.github.io/rfcs/2294-if-let-guard.html[1] https://github.com/rust-lang/rust/issues/51114
Comments
No it can't. You're missing the recursive call to `eval`.
It looks like if let guards could help with flattening it in nightly but not in stable[1]:
https://rust-lang.github.io/rfcs/2294-if-let-guard.html
[1] https://github.com/rust-lang/rust/issues/51114