From f83d6cc43d88ad423120733edf60225fe54ecee9 Mon Sep 17 00:00:00 2001 From: belliash Date: Thu, 21 Mar 2019 17:46:25 +0100 Subject: [PATCH] New list of TODO things. --- TODO | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index eb49f47..c691ff7 100644 --- a/TODO +++ b/TODO @@ -2,7 +2,13 @@ TODO list for typehinting branch. Below list contains things that should be changed/fixed/implemented. -1. int[] $arr = {5, 5}; - This syntax is unsupported yet. Should replace the array() function. +1. 'array()' keyword and builtin function is no longer needed and should be removed. 2. Some builtin functions like isset() seems to be useless, if variable is not defined, interpreter will throw an error. + +3. Arrays in AerScript are of incompatible type and can be assigned only to mixed variable type. This should be fixed. + +4. Arrays can be assigned to non-array variable, argument to Program::main is affected as well. + int main(string[] $args); is valid, but int main(string $args); also works + +5. Array construct '{ ... }' should check if all elements are of the same type and set it as whole array type or failover to mixed.