Skip to content

Commit 6f926c8

Browse files
committed
Cleaning up wording a bit
1 parent e2d8d92 commit 6f926c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

content/reference/evaluation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Strings, numbers, characters, `true`, `false`, `nil` and keywords evaluate to th
2525
A Symbol is _resolved_:
2626

2727
* If it is namespace-qualified, the value is the value of the binding of the global var named by the symbol. It is an error if the reference is to a non-public var in a different namespace.
28-
* If the qualifier names a class or a mapping from symbol to class in the current namespace, and the symbol name is a static field, the value is the value of the static field. Since Clojure 1.12, if the symbol name is a method of the class, the value is a Clojure function that invokes the method. Since Clojure 1.12, a if the qualifier names a class or primitive name and the name is a single digit between 1 and 9, inclusive then the symbol resolves to an array class.
28+
* If the qualifier names a class or a mapping from symbol to class in the current namespace, and the symbol name is a static field, the value is the value of the static field. Since Clojure 1.12, if the symbol name is a method of the class, the value is a Clojure function that invokes the method. Additionally, if the qualifier names a class or primitive name and the symbol name is a single digit between 1 and 9, inclusive then the symbol resolves to an array class with a dimesionality equal to the digit supplied.
2929
* If it is package-qualified, the value is the Java class named by the symbol. It is an error if there is no Class named by the symbol.
3030
* Else, it is not qualified and the first of the following applies:
3131
. If it names a special form it is considered a special form, and must be utilized accordingly.

content/reference/java_interop.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The preferred idiomatic forms for accessing field or method members are given ab
6666

6767
Since Clojure 1.12, `Classname/.instanceMethod` refers to a qualified instance method. When an instance method is specified, the instance should be provided after the member and before the args. When a qualified instance method is present then the qualifying class takes precedence over any additional type information on the instance for the purpose of resolving the instance method.
6868

69-
The "." forms expand into calls to the dot operator (described below) at macroexpansion time. The expansions are as follows:
69+
The unqualified "." forms expand into calls to the dot operator (described below) at macroexpansion time. The expansions are as follows:
7070

7171
[source,clojure]
7272
----
@@ -164,7 +164,7 @@ Since Clojure 1.12, a qualified form may also be used (it is not rewritten at ma
164164

165165
`(Classname/new args*)`
166166

167-
Like methods, qualified constructors `Classname/new` can be used in <<methodvalues#,values contexts>>.
167+
Like methods, qualified constructors `Classname/new` can be used in <<methodvalues#,value contexts>>.
168168

169169
''''
170170

0 commit comments

Comments
 (0)