Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the prefix :: mean

Tags:

clojure

I have seen the following prefix :: what does it represent? A :abc is a keyword, but what is ::abc ?

Thanks, Murtaza

like image 660
murtaza52 Avatar asked Dec 21 '12 06:12

murtaza52


People also ask

What do you mean by prefix?

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.

What are the 3 types of prefix?

The four most common prefixes are dis-, in-, re-, and un-. (These account for over 95% of prefixed words.)

What does the prefix AN mean in medical terminology?

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)

What does the prefix in mean Latin?

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."


2 Answers

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.

like image 26
rekire Avatar answered Nov 02 '22 22:11

rekire


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.

like image 170
amalloy Avatar answered Nov 02 '22 22:11

amalloy