Why (doc str) but (meta #'str)?
In the latter one, why is the #' necessary, which isn't in the first one?
doc is a macro which internally applies #' i.e var to the passed name, hence you don't need to pass the var itself to it. meta is a function and hence it needs the var itself to be passed otherwise the value of the var will get passed to it if you use just the name of the var (as done in doc)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With