-
Notifications
You must be signed in to change notification settings - Fork 0
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
Get returns any if the needle is incorrect #1
Comments
Hi, The return type when the needle is not found is unspecified, but yes it should be I can make this work for most cases but I may fail to reliably reject bad free types because some built-in type combinations are structurally compatible. Type checking the path in I'm thinking that |
type-lenses now optionally perform type checking on |
When the path passed to needle points to a place that does not exist on the type, it returns
any
. My expectation would be for it to returnnever
or throw an error as otherwise it essentially ends up with a silent pass from the types point of view.The text was updated successfully, but these errors were encountered: