Motivation
Our builtins are a bit scattered right now. We have special vector 'methods' (vector a; a.len(); // etc) and then we have builtins for the arrays as well (length(a)). We should try to unify the syntax of these builtins, perhaps switching arrays to a generic shape(a) function that works on arrays and scalars alike. That would make our vectors more consistent and make the spec slightly less confusing me thinks.
Tasks
Motivation
Our builtins are a bit scattered right now. We have special vector 'methods' (
vector a; a.len(); // etc) and then we have builtins for the arrays as well (length(a)). We should try to unify the syntax of these builtins, perhaps switching arrays to a genericshape(a)function that works on arrays and scalars alike. That would make our vectors more consistent and make the spec slightly less confusing me thinks.Tasks