-
Notifications
You must be signed in to change notification settings - Fork 22
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
type error when min of empty set under catch undef #445
Comments
Isn't this just the usual issue about empty set not having a type? It can be coerced to have a type via something by giving it a provenance something like |
Conjure should be able to deduce the inner type from the context it was used in. For example it works fine if you write min of empty set when not under the catch undef. I was extending Athanor to do the same and added this to Athanor's tests but discovered that for some reason (assuming something simple), it does not work under the catch undef.
… On 23 Jul 2019, at 12:39 pm, András Salamon ***@***.***> wrote:
Isn't this just the usual issue about empty set not having a type? It can be coerced to have a type via something by giving it a provenance something like {0} intersect {1}, and perhaps also using the backtick notation that I never remember?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I actually never intended catchUndef to be used in the input, but didn't
disallow it either. This should be easy to fix, but it will have to wait
until next week when I am back.
|
Cheers! Could we make catchUndef officially be part of Essence input? I've actually needed it in some of my specs and so Athanor actually supports it. Well tbh the only place I use it is when needing to catch min/mmax of a list which should be allowed to be empty.
…On 23 Jul 2019, at 9:14 pm, Özgür Akgün ***@***.***> wrote:
I actually never intended catchUndef to be used in the input, but didn't
disallow it either. This should be easy to fix, but it will have to wait
until next week when I am back.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Agree with Saad, also |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output:
The text was updated successfully, but these errors were encountered: