Thank you for the explanation; until now I associated this behavior only to
keywords not not symbols.
Johannes
Am Samstag, 26. Oktober 2019 19:12:11 UTC+2 schrieb Andy Fingerhut:
>
> Both symbols and keywords, when placed inside of an expression in the
> first position, e.g. (:my-keyword my-map
Well, Symbols implement the IFn and if you look at the invoke method, the
arg passed to it is considered to be a map (I guess more like an
environment it expects in which it will try to look for the symbol)
Anyways, since you've passed in a number, the look up in RT.getFrom leads
to a null henc
Both symbols and keywords, when placed inside of an expression in the first
position, e.g. (:my-keyword my-map), or ('some-symbol my-map), behave as
functions that "look themselves up" in the map that is the first argument,
and if that symbol or keyword is a key in that map, the associated value is
... instead of an exception?
Can anyone explain it to me?
Johannes
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with
... instead of an exception?
Can anyone explain it to me?
Johannes
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with
Corrected links:
README: https://github.com/cognitect-labs/aws-api/
API Docs: https://cognitect-labs.github.io/aws-api/
Changelog: https://github.com/cognitect-labs/aws-api/blob/master/CHANGES.md
Latest Releases of api, endpoints, and all services:
https://github.com/cognitect-labs/aws-api/blob/ma