nex3/arc — comment on commit 5957ecc28355702697a650ffdf0d122a184ed0b8
File:  line 0
By akkartik:

(if end end len.s) can be replaced with (or end $.#f)

---

I notice that these regexp functions return #f on failure. Kind of an abstraction leak, but I don't care, since anarki seems to recognize #f typed in at the repl.

In fact, if you embrace the abstraction leak these functions can be far simpler.

(def re-match (rx s . options) (apply $.regexp-match rx s options)), etc.

(I'm leaving the required args in for better error messages, but even that is a weak preference. Otherwise you can just say (= re-match $.regexp-match). Unless I'm missing something..)