You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.
Relevant discord comment from matheus, when asking about casting:
Since the only primitives are ints and floats (as far as I'm aware), it would be really interesting to consolidate the functionality to a single 'cast' call, that just checks if the value is a float or an int, and then flips it to an int or float, respectively.
The text was updated successfully, but these errors were encountered:
Since the only primitives are ints and floats (as far as I'm aware), it would be really interesting to consolidate the functionality to a single 'cast' call, that just checks if the value is a float or an int, and then flips it to an int or float, respectively.
Unfortunately this isn't doable with our type system. (Well, it might be, but the type checking overhead + chance to get it wrong just isn't worth it.)
Relevant discord comment from matheus, when asking about casting:

Since the only primitives are ints and floats (as far as I'm aware), it would be really interesting to consolidate the functionality to a single 'cast' call, that just checks if the value is a float or an int, and then flips it to an int or float, respectively.
The text was updated successfully, but these errors were encountered: