Currently :def-emits-var works only if there is an init form. (In particular, the change for CLJS-934 did not revise the when init aspect of emit* def.) This ticket asks that :def-emits-var be extended to cover this case as well.
Additionally, this ticket asks that the same be made to hold true for declare (if it is not already implicitly take care of the def without init case.
Rationale:
It is justifiable in and of itself. (:def-emits-var should work unconditionally whether a def has an init).
A consequence for normal REPL use would be that init-less def forms would work at the REPL and declare would work at the REPL without complaining.
The second issue above (REPL use) wouldn't be taken care of if :def-emits-var is explicitly turned off.
Currently
:def-emits-var
works only if there is an init form. (In particular, the change for CLJS-934 did not revise thewhen init
aspect ofemit* def
.) This ticket asks that:def-emits-var
be extended to cover this case as well.Additionally, this ticket asks that the same be made to hold true for
declare
(if it is not already implicitly take care of thedef
without init case.Rationale:
It is justifiable in and of itself. (
:def-emits-var
should work unconditionally whether adef
has an init).A consequence for normal REPL use would be that init-less
def
forms would work at the REPL anddeclare
would work at the REPL without complaining.The second issue above (REPL use) wouldn't be taken care of if
:def-emits-var
is explicitly turned off.