diff --git a/CHANGELOG.md b/CHANGELOG.md index 9994492c..85af83d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed + * `import` now returns nil instead of the last module's string representation (#1174) ## [v0.3.5] ### Changed diff --git a/src/basilisp/core.lpy b/src/basilisp/core.lpy index 497e4b91..10da2ab2 100644 --- a/src/basilisp/core.lpy +++ b/src/basilisp/core.lpy @@ -4936,7 +4936,8 @@ ;; to the new ns, the global python namespace can still refer to the ;; old python global ns where the import would have been evaluated ;; otherwise. - (let [form `(import* ~@modules)] + (let [form `(do (import* ~@modules) + nil)] `(eval '~form *ns*))) (defn ^:private rewrite-clojure-libspec