Skip to content
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

Impossible to define unfeasible conditions in CPT #13

Closed
GoogleCodeExporter opened this issue Aug 4, 2015 · 1 comment
Closed

Impossible to define unfeasible conditions in CPT #13

GoogleCodeExporter opened this issue Aug 4, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

CPT do not allow for conditions that are certainly unfeasible. Examples:

lea> a = ?('x','y')
lea> ?! (a==a -> 's',
 ...      _   -> 't')
Lea error: forbidden to define 'other' clause for complete clause set
lea> ?! (a!=a -> 's',
 ...      _   -> 't')
Lea error: some clause condition is not feasible

Even if such conditions are not usual, it should be more sensible to accept 
them and produce expected results (e.g. 's' with probability 1 in first case, 
't' with probability 1 in second case). See treatment of if-then-else in 
programming languages.

Original issue reported on code.google.com by pde@n-side.com on 16 Mar 2015 at 10:28

@GoogleCodeExporter
Copy link
Author

Corrected in Lea 2.1.1

Original comment by pde@n-side.com on 18 Mar 2015 at 12:18

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant