dtr-org / unit-e

A digital currency for a new era of decentralized trust
https://unit-e.io
MIT License
45 stars 15 forks source link

Properly evaluate Boolean function results #953

Closed cmihai closed 5 years ago

cmihai commented 5 years ago

Previously, all(...) got a list of function objects, which did not get executed but instead interpreted as boolean values. Now the logic inside the functions is properly called.

Ruteri commented 5 years ago

I honestly can't tell if it's correct or not without testing it. How about implementing all_predicates that would do what we want? Might be a bit clearer.