https://github.com/escherize/clj-goto
goto in Clojure
https://github.com/escherize/clj-goto
Last synced: 9 months ago
JSON representation
goto in Clojure
- Host: GitHub
- URL: https://github.com/escherize/clj-goto
- Owner: escherize
- Created: 2025-07-26T02:07:27.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-08-06T02:28:44.000Z (11 months ago)
- Last Synced: 2025-08-06T04:17:13.905Z (11 months ago)
- Language: Clojure
- Size: 2.93 KB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clj-goto
It's `goto`, in Clojure :tada:
``` clojure
(def n (atom 0))
(goto/block
[:label :start]
(println "Starting up")
(goto :add)
[:label :add]
(swap! n inc)
(if (>= @n 5) (goto :end) (goto :add))
[:label :end]
(println "all done!"))
@n
;; => 5
```