I'm currently writing #Fennel examples, and this is delightful. I even managed to make the decide function even more beautiful than it was!

(local ruleset [is-in-ai-robots-txt?
default])

(fn decide [request]
(accumulate [outcome nil
_ f (ipairs ruleset)
&until (not= outcome nil)]
(f request)))

This is perfection.

Turned out to be a very easy fix.

Noticed the problem while writing the Getting Started guide: I made a typo in one of the Lua tests, and the testsuite was failing, and I had no output whatsoever. Took a bit of trial and error to spot the typo and fix it, and that revealed the root problem: runtime errors were silently ignored by iocaine test when used with the Lua/Fennel engine.

1 more replies (not shown)