There are now 2 and will currently be more casts. e.g.:
var foo
/* ... some code where foo may or may not be converted to a vector, like vector_add but foo may still never have been set */
some_func foo
If some_func is expecting a vector and foo hasn’t been typed to vector yet, this might create an error depending what some_func does. So to get around this you can use:
some_func (vector foo)
Or:
/* this way, setting it right away is preferable to avoid a vector copy */
var foo
= foo (vector foo)
number and string already exist in 3.0.0. 3.0.1 will have vector, map, function, label and pointer.

Leave a Reply