-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is
can be fooled
#502
Comments
> $.test ([]) ($.Number) (4)
true
> $.test ([]) ($.Array ($.Integer)) ([1, 2, 3])
true
> $.test ([]) ($.Array ($.Integer)) ([1, 2, 3.14])
false Can we prevent Perhaps we should remove |
Not sure about this but perhaps This would break the backward compatibility with the current |
Yeah, it may be cleaner API-wise to only need to interact with properties on David, are there any downsides to this alias? |
You would need to export all type identifiers from |
That's true, I was just advocating for a less radical approach such as writing things like A simple way to interact only with |
This is an interesting idea, @gautaz. It would make @Avaq, what do you think of the possibility of repurposing |
I prefer re-purposing |
While documentation says:
is :: TypeRep a -> Any -> Boolean
Takes a type representative and a value of any
type and returns
true
iff the given value is of the specified type.Subtyping is not respected.
The text was updated successfully, but these errors were encountered: