concept no argument in category clojure

appears as: no argument, no arguments
Get Programming with Clojure

This is an excerpt from Manning's book Get Programming with Clojure.

Table 4.2  A comparison of the syntactic rules for arithmetic operations in Clojure versus the usual Math notation. The rule highlighted is the rule that was recently discussed.

Rule

Clojure

Math

Operator position

before the operands

between the operands

Parenthesis

Required

Not Required

Separator

Whitespace

Whitespace

Number of operands

2 or more

Exactly 2

meditation

There is a famous Zen Kōan (statement to meditate upon) that goes like this:  "Two hands clap and there is a sound, what is the sound of one hand?". In Clojure, one can ask herself: “What happens when we add one number? When we multiply one number? When we subtract one number? When we divide one number?

Unlike the Zen Kōan, there is a concrete answer to each of those questions. 

(+ 3) is 3      - An implicit 0 first argument is added

(* 4) is 4      - An implicit 1 first argument is added

(- 3) is -3     - An implicit 0 first argument is added

(/ 2) is 1/2    - An implicit 1 first argument is added

For the addition and the multiplication, one can even pass no argument:

(+) is 0

(*) is 1

In this section, we will focus on the case where our program receives no arguments, therefore our -main function will also receive no arguments. In the next section, we will discuss program with arguments. In order to create our hello program, please follow the following steps: