Allow users to cast types explicitly using as keyword. This should perform value checks in the future where possible. For example ask("Enter your favourite number") as number cannot possibly check correctness of the value during compilation, but "1.2" as number can.
Type inference here should also be possible, as calling function that expects number should be possible with f(arg as _).
Allow users to cast types explicitly using
as
keyword. This should perform value checks in the future where possible. For exampleask("Enter your favourite number") as number
cannot possibly check correctness of the value during compilation, but"1.2" as number
can.Type inference here should also be possible, as calling function that expects number should be possible with
f(arg as _)
.