- Pull Request from
borkdude
which added clj-kondo hooks to lint:let
inif-let
,when-let
,if-some
, andwhen-some
.
- Pull request from
borkdude
which added clj-kondo hooks to also properly lint defnc, defnc-, if-let, if-some, when-some - ...and added CI setup.
- Fix when-let in clj-kondo hooks
- Renamed clj-kondo hooks for better experience with Cursive IDE.
- Added support for clj-kondo, using pull request submitted by
borkdude
.
-
Prior to 2.1.0, defnc and defnc- didn't properly handle the case when the body was solely a map, such as
(defnc f [x] {:a 1})
. It mistakenly considered the map to be a pre/post-condition map. -
Fixed bug where defnc- wasn't properly making function's var private.
-
Cond supports
do
for a single-line side effect. -
Cond supports
when-some
(likewhen-let
but tests for non-nil). -
Cond allows symbols as an alternative to keywords for let, when-let, when-some, when, and do.
-
Two new macros:
defnc
anddefnc-
are likedefn
anddefn-
with an implicit cond wrapped around the body.