You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks a lot for this little but very useful library.
One thing I am struggling a bit with is the return type of the ExVatcheck.check/1 function. Since it is a struct with 4 keys, the number of possible states is too big and doesn't represent the reality.
In the spirit of the "Make Illegal States Unrepresentable" I think it would be more convenient if that function returns structs that represent the only possible outcomes:
Of course, those structs can be tuples or something similar. It's just a rough idea and I will be happy to implement it, if there's a positive feedback to this and once we agree on a way to do this.
What do you think?
The text was updated successfully, but these errors were encountered:
Hi there. 🙂
First of all, thanks a lot for this little but very useful library.
One thing I am struggling a bit with is the return type of the
ExVatcheck.check/1
function. Since it is a struct with 4 keys, the number of possible states is too big and doesn't represent the reality.In the spirit of the "Make Illegal States Unrepresentable" I think it would be more convenient if that function returns structs that represent the only possible outcomes:
Of course, those structs can be tuples or something similar. It's just a rough idea and I will be happy to implement it, if there's a positive feedback to this and once we agree on a way to do this.
What do you think?
The text was updated successfully, but these errors were encountered: