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_by
andsort
(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
ea98fc97bb
Done here
9d296f04cb
There is no such table as I didn't find a use for it, if all
id
s 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
ord
but 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 byord
so I only need to store that.So checking if
{id, _, "int"}
is comparable byord
will only succeed because"int"
is in the tableord_constraint_types
, but checking if any other type of the form{id, _, Id}
is comparable byeq
will always succeed.Done here
fc2875965e
Will have to modify the tests for that.
Check this commit that made
address
comparable byord
fc2875965e
.Fixed the tests here
4562a7166c
Checkout
From your project repository, check out a new branch and test the changes.