Show HN: Clojure Redis pubsub client with keep-alive heart beats (github.com) 3 points by aravind_b 8y ago ↗ HN
[–] ryanbertrand 8y ago ↗ Very nice! Quick observation, what is the purpose of the # suffix on your variables? I haven’t seen this much and would like to know what it signals, etc. [–] aravind_b 8y ago ↗ Thanks! If you are referring to the # in this area of the code - https://github.com/aravindbaskaran/redis-pubsub/blob/master/... - then that refers to a Clojure macros autogensym for symbols created within the macro. If the # is removed, the symbol is resolved from the top namespace where the macro expands. If you are up for some more reading on the weird symbols of Clojure, I have it here - https://hackernoon.com/clojure-macros-lessons-from-unspoken-... [–] ryanbertrand 8y ago ↗ It is now clear I don’t write enough macros :)Your blog post was great. Thanks for the share.
[–] aravind_b 8y ago ↗ Thanks! If you are referring to the # in this area of the code - https://github.com/aravindbaskaran/redis-pubsub/blob/master/... - then that refers to a Clojure macros autogensym for symbols created within the macro. If the # is removed, the symbol is resolved from the top namespace where the macro expands. If you are up for some more reading on the weird symbols of Clojure, I have it here - https://hackernoon.com/clojure-macros-lessons-from-unspoken-... [–] ryanbertrand 8y ago ↗ It is now clear I don’t write enough macros :)Your blog post was great. Thanks for the share.
[–] ryanbertrand 8y ago ↗ It is now clear I don’t write enough macros :)Your blog post was great. Thanks for the share.
3 comments
[ 3.4 ms ] story [ 20.1 ms ] threadYour blog post was great. Thanks for the share.