3 ms·
I think a compelling use case is flexibly defining rules. Biscuit’s Datalog tutorial does a good job of illustrating how you can go from simple auth to RBAC wit
by grose 3y ago
I think a compelling use case is flexibly defining rules. Biscuit’s Datalog tutorial does a good job of illustrating how you can go from simple auth to RBAC with just a few lines of code. https://www.clever-cloud.com/blog/engineering/2021/04/15/biscuit-tutorial/ https://www.clever-cloud.com/blog/engineering/2021/04/15/bis...
For your particular example, using DCGs like:
file(X), phrase(("cat", ..., ".jpg"), X).
Is a bit clearer. You can use DCGs to do all kinds of parsing and generating (and in this case, testing). But they aren’t going to be as fast as a highly optimized regex engine.