From bb0f93805c623b5f9d26647e3ff4b829eec6a032 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Wed, 27 Nov 2019 14:15:29 +0100 Subject: [PATCH] docs --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index f8499e04..e7b90b7e 100644 --- a/README.md +++ b/README.md @@ -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: