Re:Try Clojure
by createaccount99 on Thursday May 23, 2024 @02:22AM
(#40451133)
That's cool, I had no idea. In clojure itself I suppose you eval code and then get autocompeletes from the repl output? -- I mean for stuff with no types
If you need method autocomplete scoped to a type you can use the `..` macro for more concise call syntax:
this other form will a also autocomplete everything after the dot (.) to call a method on an object: but the trick with this arrangement is to write that variable some-str first, then if you write . in front of it the autocompletes will be relevant to that object. But I gratuitously used threading macros like .. or -> to make it match java-style code (in other words: (-> some-str (.toUpperCase))).