From 5fadfba312fcd0367a3341c5d194b7955627c177 Mon Sep 17 00:00:00 2001 From: nodist Date: Sat, 11 Jul 2026 21:37:00 -0400 Subject: remove imcomplete functions --- docs/type_system/function.md | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'docs/type_system/function.md') diff --git a/docs/type_system/function.md b/docs/type_system/function.md index bca4c7e..76430a5 100644 --- a/docs/type_system/function.md +++ b/docs/type_system/function.md @@ -3,14 +3,11 @@ --- ```text - -MODE: INCOMPLETE | COMPLETE - STATELESS : NATIVE | NATIVE_INLINE | PROCESS | GENERATOR | REGEX_GENERATOR STATEFUL : TASK | ITERATOR | CLOSURE | BOUND | REGEX -Function[[MODE | STATELESS | STATEFUL]; JIT; IR; Body; INVOCATION_LIST; RETURN_TYPE; Collection[NAME_LIST; TYPE.SYMBOL]] +Function[[MODE | STATELESS | STATEFUL]; JIT; IR; Body; RETURN_TYPE; Collection[NAME_LIST; TYPE.SYMBOL]] ``` ## Type Body Object Definitions @@ -18,7 +15,7 @@ Function[[MODE | STATELESS | STATEFUL]; JIT; IR; Body; INVOCATION_LIST; RETURN_T ```c typedef struct { void *jit; - kpl_type *ir, *body, *invocation_list, *return_type, *var_list; + kpl_type *ir, *body, *return_type, *var_list; } kpl_type_body_function; ``` @@ -31,20 +28,12 @@ Fn[Generic.T; Collection[VAR_TREE_LIST; TYPE.SYMBOL]] `alias Function[...] # Inline Definition ```text -([x; y] x + y) // Fn[Any; Any.x; Any.y] -([I64.x; y] x + y) // Fn[Any; I64.x; Any.y] +([I64.x; I64.y] x + y) // Fn[Any; I64.x; I64.y] +([I64; I64.x; I64.y] x + y) // Fn[I64; I64.x; I64.y] ``` # Function Classes -## Incomplete - -A function with an incomplete type, type checking occurs at invocation its complete types are stored in its `INVOCATION_LIST` - -## Complete - -A function with a complete type, it stores it's `IR` and `JIT` - ## Native Native C code that can be called async -- cgit v1.2.3