-
Notifications
You must be signed in to change notification settings - Fork 15
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
Error when Missing Reduce #191
Comments
This is a problem because you can't easily distinguish cases where an expression represents a "unit" or not. Examples:
These are all valid in some sense, even if they're a bit non-sensical. It seems like we could outlaw situations like this ... but that could prevent existing code from compiling? In the case of a guard, well it makes sense there at least. |
Right, so I have a partial fix for this which catches occurrences in
This previously compiled, though I don't think it really makes sense? The generated constraints are:
|
The challenge is that its not clear to me how to fix the general problem. Some points:
One possibility might be to make the internal uses of |
Ok, have resolved that in two ways: firstly, only checking arguments explicitly for lists; secondly, managing the one internal call (related to perspective selectors) by disabling validation for that call. |
This one should be refused because (i)
This one is acceptable I believe (although I reckon it's just a convoluted way of writing |
Did you have any specific mechanism for detecting whether a |
The following examples should generate a corset error, but currently do not:
The problem is that we're missing
reduce
. For example, a corrected version for the first example above is:The text was updated successfully, but these errors were encountered: