From 01a16802daa9d51d17e240199302cffb97717901 Mon Sep 17 00:00:00 2001 From: Vaclav Tvrdik Date: Sun, 7 Mar 2021 18:52:56 +0100 Subject: [PATCH] tiny nil optimization --- ml.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ml.cpp b/ml.cpp index cfb1e73..72f22a1 100644 --- a/ml.cpp +++ b/ml.cpp @@ -94,9 +94,7 @@ MlValue MlValue::string(const std::string &s) { } MlValue MlValue::nil() { - MlValue result; - result.type = NIL; - return result; + return MlValue(); } // Construct a lambda function