-
Notifications
You must be signed in to change notification settings - Fork 202
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
Daml-LF: define generic equality #3074
Comments
Here are 5 different ways to get equality in LF. 1 - making equality builtin fails at runtime if it encounters value that cannot compare (typically functions)
2 - do not specify the behaviors of equality on not equatable types (i.e. types that is inhabit only by equatable values)
3 - check at runtime the type is equatable
4 - add a builtin type class for "equatable" type (See spec in 8fad988)
5 - make a subkind of star to represent equatable type variables
6 - create a runtime proof that a type is equatable following the approach sketch in the draft PR #3073
|
#3260 includes a spec for this. Should we close this ticket? |
In order to add a generic Map type to Daml-LF (#2256), we need to come with a proper definition of equality for any of those values that can be used as key.
The text was updated successfully, but these errors were encountered: