diff --git a/evaluator/evaluator.go b/evaluator/evaluator.go index 438ce33..1fac4ef 100644 --- a/evaluator/evaluator.go +++ b/evaluator/evaluator.go @@ -45,14 +45,6 @@ func isError(obj object.Object) bool { return false } -func isNil(obj object.Object) bool { - return obj == Nil -} - -func isSymbol(obj object.Object) bool { - return obj.Type() == object.SYMBOL_OBJ -} - func evalProgram(program *ast.Program, env *object.Environment) object.Object { var result object.Object diff --git a/repl/repl.go b/repl/repl.go index a3d96d3..90f5fa6 100644 --- a/repl/repl.go +++ b/repl/repl.go @@ -36,8 +36,8 @@ func Start(in io.Reader, out io.Writer) { evaluated := evaluator.Eval(program, env) if evaluated != nil { - io.WriteString(out, evaluated.Inspect()) - io.WriteString(out, "\n") + _, _ = io.WriteString(out, evaluated.Inspect()) + _, _ = io.WriteString(out, "\n") } } }