conch icon indicating copy to clipboard operation
conch copied to clipboard

Possible to let-bind without macros?`(let [ls (sh/program "ls")] (ls))`

Open theronic opened this issue 7 years ago • 0 comments

I found the conch macros to have high cognitive overhead. For fear of side-effects, I went and glossed over let-programs first before trying it.

It would be nice if conch could return a lazy program via let that did path resolution at run-time, perhaps with existence (and permission) checking at definition time. E.g.:

(require '[me.raynes.conch :as sh])
(let [docker (sh/program "docker")]
  (docker "build" "more args go here"))

I believe this would satisfy 99% of use-cases and would make Conch more approachable :).

theronic avatar Oct 11 '18 13:10 theronic