Hacker News new | ask | show | jobs
by Barrin92 1428 days 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.
3 comments

Vararg support in interop and type creation (deftype/defprotocol) seems like a reasonable ask.
You 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.