This commit is contained in:
Michiel Borkent 2019-11-27 14:15:29 +01:00
parent 3e0d464bfe
commit bb0f93805c

View file

@ -183,8 +183,20 @@ The following Java classes are available:
- `String`
- `System`
- `Thread`
Babashka supports `import` : `(import clojure.lang.ExceptionInfo)`.
Babashka supports a subset of the `ns` form where you may use `:require` and `:import`:
``` shellsession
(ns foo
(:require [clojure.string :as str])
(:import clojure.lang.ExceptionInfo))
```
For the unsupported parts of the ns form, you may use [reader
conditionals](#reader-conditionals) to maintain compatibility with JVM Clojure.
More classes can be added by request.
Special vars: