Skip to content
This repository has been archived by the owner on Jan 28, 2019. It is now read-only.

Binding the root of a ^:once Var should emit a warning #90

Open
arrdem opened this issue Mar 8, 2016 · 0 comments
Open

Binding the root of a ^:once Var should emit a warning #90

arrdem opened this issue Mar 8, 2016 · 0 comments

Comments

@arrdem
Copy link
Collaborator

arrdem commented Mar 8, 2016

Not an error, because occasionally people do want to refresh ^:once defs. Maybe this is a redundant warning because a warning that ^:once is being discarded will already be emitted. Also the question of whether this should be implemented as part of the compiler in that a def form should emit this check, or whether it should be implemented as part of Var so that any alterRoot/bindRoot/swapRoot/commuteRoot call will emit such a warning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant