by throwawaymaths · 2y ago · 0 comments
https://docs.python.org/3/library/typing.html#typing.cast
typing.cast(typ, val)
https://haxe.org/manual/expression-cast.html cast expr; // unsafe cast
cast (expr, Type); // safe cast1) it'll be a compiler error anyways
2) of course there's room for confusion. It could be
cast(T) var
Or it could be
cast(var) T
And you must remember which is correct.