Okay, some better phrasing, then: the closure-based approach has been idiomatic for years, but the symbol-based idiom is new.
What lessons have folks learned from trying these approaches in other languages? Which is more idiomatic, and why?
What lessons have folks learned from trying these approaches in other languages? Which is more idiomatic, and why?
Btw, once a symbol is created, is it ever garbage collected? (They are not in Common Lisp for example).
Possibly on page reload (for javascript in browser) they would. But how about long-running javascript code?