clojure-dev 2023-11-15

question about the upcoming syntax changes. I find myself doing a double-take when I see .File/exists. Was File/.exists ever considered? (This is not a bikeshedding question lol, I don't want y'all to change it, just curious.)

What does the full example look like? I haven't looked into the proposed syntax changes yet

(.File/exists x) ;;=> true ?

The symbol .String/toUpperCase signifies a member symbol for the instance method toUpperCase in the String class.

Pretty cool, this will help static analysis

👍 1

like:

(.File/<tab> )
completions :)

👍 2

I wonder how this could positively affect CLJS too (for the same reasons)

Alex Miller (Clojure team) 2023-11-15T16:19:17.584199Z

re the original question, yes

Alex Miller (Clojure team) 2023-11-15T16:20:14.489489Z

I don't think there is a really strong argument either way other than Rich's preference, but it keeps the leading dot as an instance method signifier

1

that makes sense, thanks