defnc should detect if dependencies are exhaustively filled in, and if not signal a compiler warning. It could be silenced by filling in the dependencies or annotating with metadata.
;; Warning! Non-exhaustive dependencies
(use-memo
[foo]
(+ foo bar))
;; Ignore specific dependency in the body
(use-memo
^{:ignore-deps [bar]} [foo]
(+ foo bar))
;; Don't warn ever
(use-memo
^:ignore-deps []
(+ foo bar))
defnc
should detect if dependencies are exhaustively filled in, and if not signal a compiler warning. It could be silenced by filling in the dependencies or annotating with metadata.