Add comparable typevar constraints #881
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "ghallak/229"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes: #229
Created by: radrow
Good opportunity to actually give some example address here
Created by: radrow
formatting
Created by: radrow
Where are eq_constraint_types?
Created by: radrow
Please write tests for type inference:
Created by: radrow
I would use less "judging" language and more "factful". Also, restructured a little bit.
Created by: radrow
After some thinking I think comparing addresses makes sense. It can be useful if you keep a list of addresses and want to ensure the order by sorting it
Created by: radrow
Please add versions of
insert_byandsort(and possibly others) that instead of taking a comparison lambda, rely on the constraintsCreated by: radrow
Review: Commented
Update fold in aeso_syntax_utils
Created by: radrow
Remember that you actually can reuse the existing definitions by just applying them with a lambda
Done here
ea98fc97bbDone here
9d296f04cbThere is no such table as I didn't find a use for it, if all
ids are comparable by equality, what should go in that table?Created by: radrow
I don't get why there is a need for a table for
ordbut not foreq. Would you explain why one is needed and the other is not?Since all types of the form
{id, _, Id}are compared byeq, there is no need to store all of them in a table, but not all types of the above form are compared byordso I only need to store that.So checking if
{id, _, "int"}is comparable byordwill only succeed because"int"is in the tableord_constraint_types, but checking if any other type of the form{id, _, Id}is comparable byeqwill always succeed.Done here
fc2875965eWill have to modify the tests for that.
Check this commit that made
addresscomparable byordfc2875965e.Fixed the tests here
4562a7166cCheckout
From your project repository, check out a new branch and test the changes.