Fork me on GitHub

I thought there was already a linter some years ago that could warn about uses of assoc! and other transient operations, if you called them but discarded their return value. It has been years since I looked at it, but I recall at least considering implementing something like that. Perhaps it bit-rotted since then.


Perhaps the :unused-ret-vals linter did that at some point in the past?


That’s actually how this was implemented 😁


@U0CMVHBL2 there's a fair chance that assoc! once was defined like that. var-info.edn has had its churn/'bugs'. Now with unit tests it's more difficult that the intent gets lost in the way


In any case, cool that you added the capability back in if it was not there in the latest version of Eastwood.

🍻 1