Skip to content

Instantly share code, notes, and snippets.

@nberger
Created October 17, 2017 00:39
Show Gist options
  • Save nberger/26c3da4a488a8f85c960cdc2c23ea48c to your computer and use it in GitHub Desktop.
Save nberger/26c3da4a488a8f85c960cdc2c23ea48c to your computer and use it in GitHub Desktop.
;; Example Machfile (https://github.com/juxt/mach)
;; Install: npm install -g @juxt/mach
;; Run: mach hibye
;; I'd like it to print hallo then bye, but it prints bye then hallo.
;; This is because it does a reverse topological sort. It would be
;; nice if it does a stable reverse topological sort instead, where
;; {depends [hallo bye]} would give a hint that the user wants hallo
;; to come before bye, even though there is no explicit dependency
{
hallo (println "Hola ClojureBA")
bye (println "Chau ClojureBA")
hibye {depends [hallo bye]}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment