mdiep / Logician

Logic programming in Swift
MIT License
194 stars 10 forks source link

bimap should be able to throw if a value can't be converted #23

Open mdiep opened 7 years ago

mdiep commented 7 years ago

For instance, integer multiplication would require division with no remainder. Given a * b == 12 where a and b are integers, b == 7 shouldn't unify.

robrix commented 7 years ago

Would b == 7 be the bit that fails, or would it be b : Integer? 😁