-
Notifications
You must be signed in to change notification settings - Fork 67
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
Cast to "type" type #4714
Comments
mattnibs
added a commit
that referenced
this issue
Jan 11, 2024
mattnibs
added a commit
that referenced
this issue
Jan 12, 2024
mattnibs
added a commit
that referenced
this issue
Jan 12, 2024
mattnibs
added a commit
that referenced
this issue
Jan 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Repro is with Zed commit e6be73e.
tl;dr
I found myself wanting to perform this cast, but it's not implemented yet.
Details
The high level use case is that I want to cast values to richer Zed types so I can use them in certain functions. I'll explain by first using a non-type example.
i..e,
addr
started as astring
, so I turned it into anip
so I could use it as an arg tocidr_match()
.That worked, so let's start from this:
That works since dest_type was a
type
type out of the gate. But what if I do this?@mattnibs did point out this works, though.
As a user, I'd not thought to try that since the other casting functions work the way they do.
The text was updated successfully, but these errors were encountered: