When is it appropriate to use generated symbols(varname#) in clojure? What are the specific examples?
When is it appropriate to use generated symbols(varname#) in clojure? What are the specific
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They are mostly used in macros so that the symbols you defined in macro doesn’t conflict with the symbols that are defined in the same lexical scope when the macro is called. Using auto generated symbol would allow to avoid this kind of conflict (this concept is AKA hygienic macros).