Add more detailed messages in todos
@@ -619,9 +619,10 @@ impl<'a> Evaluator<'a> {
}
}
HirExpression::For(for_expr) => self.handle_for_expr(env,for_expr).map_err(|kind|kind.add_span(span)),
- HirExpression::If(_) => todo!(),
- HirExpression::Prefix(_) => todo!(),
- HirExpression::Literal(_) => todo!(),
+ HirExpression::If(_) => todo!("If expressions are currently unimplemented"),
+ HirExpression::Prefix(_) => todo!("Prefix expressions are currently unimplemented"),
+ HirExpression::Literal(HirLiteral::Str(_)) => todo!("string literals are currently unimplemented"),
+ HirExpression::Literal(HirLiteral::Bool(_)) => todo!("boolean literals are currently unimplemented"),
HirExpression::Block(_) => todo!("currently block expressions not in for/if branches are not being evaluated. In the future, we should be able to unify the eval_block and all places which require block_expr here")
}
}
