From 5d868a759d1ab043552f284f2ebbef19d859e173 Mon Sep 17 00:00:00 2001 From: Mark <67615357+Dummi26@users.noreply.github.com> Date: Tue, 14 Mar 2023 12:40:15 +0100 Subject: [PATCH] basis for type-checked builtins (1) --- src/script/builtins.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/script/builtins.rs b/src/script/builtins.rs index 9291524..270a569 100644 --- a/src/script/builtins.rs +++ b/src/script/builtins.rs @@ -91,7 +91,10 @@ impl BuiltinFunction { _ => return None, }) } - pub fn returns(&self) -> VType { + pub fn takes(&self, in: Vec) -> bool { + todo!() + } + pub fn returns(&self, in: Vec) -> VType { match self { // [] Self::Print | Self::Println | Self::Debug | Self::Sleep => VType {