7 ms·
not the OP but this struck home for me because I just recently worked with Clojure and I was surprised that there was no standard library to deal with filepath
by Barrin92 4y ago
not the OP but this struck home for me because I just recently worked with Clojure and I was surprised that there was no standard library to deal with filepath operations. Having to use Java's nio, immediately exposed some weirdnesses, like having to pass an empty array to Paths.get() because just calling it with a string with one parameter made it chose the wrong overloaded function.
- jhhh 4y agoVararg support in interop and type creation (deftype/defprotocol) seems like a reasonable ask.
- lenkite 4y agohttps://babashka.org/fs/codox/babashka.fs.html#var-path https://babashka.org/fs/codox/babashka.fs.html#var-path
- didibus 4y agoYou can type hint to pick the one of the type you're looking for. It's not any weirder than in Java, no need to pass an empty array.