Skip to content

Qualify Java methods vs functions statement#734

Open
kovan wants to merge 1 commit intoclojure:masterfrom
kovan:docs/qualify-methods-vs-functions
Open

Qualify Java methods vs functions statement#734
kovan wants to merge 1 commit intoclojure:masterfrom
kovan:docs/qualify-methods-vs-functions

Conversation

@kovan
Copy link

@kovan kovan commented Mar 14, 2026

Changes "Can't store them or pass them as arguments" to "Can't be stored in vars or passed as arguments directly" in the Learn Clojure > Functions guide.

The original phrasing was technically correct but could be read as an absolute limitation. Adding "in vars" and "directly" makes it clearer that wrapping in a function (shown in the next example) is the standard workaround.

Fixes #715

Change "Can't store them or pass them as arguments" to "Can't be
stored in vars or passed as arguments directly" to be more precise.
Java methods can be wrapped in functions and then stored/passed, which
the next bullet already notes.

Fixes clojure#715
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Java Interop section of Learn Clojure > Functions

1 participant