3 ms·
Explicit renaming also gets annoying because it's done properly you need to rename everything, even basic forms like let, if, cond, etc.
by jlongster 15y ago
Explicit renaming also gets annoying because it's done properly you need to rename everything, even basic forms like let, if, cond, etc.
- Arelius 15y agoAnyone ever tried something of a explicit un-renaming macro?
- apgwoz 15y agoRight, and that's the point. Though, I suppose it'd be easy enough to create a code walker which renamed everything unless the symbol started with % or something. That, in my opinion is sort of the beauty of Clojure's macro system. By default, all symbols referred to are expanded to there FQN unless of course you use unquote. My guess is that Byrd's problem with that is that it's not really a hygiene solution so much as it is a system which takes full advantage of 2 things--Clojure vars are immutable and namespaces are unique.