This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
I just came across something I haven't noticed before. In some code the following var was def'd: (def foo nil)
and then later was referenced as #'foo
my interpretation of how this is being used is within a function to delay the lookup of the symbol until runtime because by then the value of foo
will have changed and the function needs the value of foo
at that point in time, rather than the nil
value that foo is initially given.
funny how long it takes to grok such simple things as vars and symbols, in spite of many years of programming experience
it is a useful trick to access private vars in a different namespace when testing as well
@colin.yates: yeah, SO actually had some really good answers to this question
http://stackoverflow.com/questions/9113387/difference-between-symbols-and-vars-in-clojure
makes me think "how have I been able to do any programming in clojure at all without fully groking vars and symbols?"
I don’t think that feeling ever ends 😉
and there are definitely parts that are way more familiar now that I've been working with clojure for several weeks
so there is some progress and familiarity with at least part of this infinite rabbit hole
add emacs into the mix (although I would strongly recommend Cursive over emacs if the choice is there) and it never ends!
I've used emacs in the past, though never at an expert level. I tried to use/like spacemacs but didn't. I just started using Cursive and really like it.
I use Cursive for Clojure but I am trying to invest in emacs for everything else (book reviewing, writing, note taking etc.)
org-mode is my current black hole. I find this tension though on the mac to use all the pretty things
I think I just have to accept that I'm not going to be one of those people who do amazing things with their editors.
A super-productive workflow would be nice, I'm just not sure I'm capable of it, and that's okay.
yeah, me too/neither
I do like the fact that no learning is ever wasted in emacs though - I love the ‘one way to do everything’ approach it has.
Very true. I may go back to emacs, but for now it's Cursive and REPL stuff I'm focusing on. And with all the changes happening with tooling for cljs I just want something stable, although I think the emacs and cider stuff has improved a lot lately as well.
ohh - you will hate it and then love it .
To be honest (might get shot) but I think the Cursive story is much more capable than the emacs story for hybrid Clojure/ClojureScript projects.