I have seen the following prefix ::
what does it represent? A :abc
is a keyword, but what is ::abc
?
Thanks, Murtaza
Prefixes are letters which we add to the beginning of a word to make a new word with a different meaning. Prefixes can, for example, create a new word opposite in meaning to the word the prefix is attached to. They can also make a word negative or express relations of time, place or manner.
The four most common prefixes are dis-, in-, re-, and un-. (These account for over 95% of prefixed words.)
An- = prefix denoting without, lacking. Anaerobe = an organism that is able to live and grow in the absence of free oxygen. Anaesthesia = loss of feeling or sensation in a part or all of the body. (N.B. in some cases the same meaning of 'without' can be conveyed by the 'A'- alone as the prefix)
in- (1) word-forming element meaning "not, opposite of, without" (also im-, il-, ir- by assimilation of -n- with following consonant, a tendency which began in later Latin), from Latin in- "not," cognate with Greek an-, Old English un-, all from PIE root *ne- "not."
In other languages this is the default namespace. But not sure if this exists in Clojure too. Refering to this comment, it seems to be correct.
Suppose that the current namespace is my.app
. Then, ::x
is a reader shorthand for :my.app/x
, a keyword whose namespace part is my.app
and name is x
.
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