I'm just playing around with the the nio2 package in jdk7 and have
found clojure doesn't interop "nicely" when resolving a method
signature if the signature conflicts the polymorphic equivalent with
appended variable argument.

Just writing that feels confusing (let alone the quasi techno babble)
so here is the example:

http://docs.oracle.com/javase/7/docs/api/java/nio/file/Paths.html

there are 2 static methods in the class "Path".

Path.get(String first, String... more): usage examples:
  Path.get("foo");
  Path.get("foo", new String[] {"bar", "baz"});

and

Path.get(URI uri)

Now when trying to use the first function in clojure such as
(Path/get "foo")
the Path.get(URI) method will be resolved.

Now my question(s):
Is there a clean way to call this function (beside my current work
around "(Path/get "foo" (make-array String 0))"). Is this a bug? Is
this just me being idealistic in the way I want this to work? Is there
an undocumented (or simply unread) way to make type-hinting work for
me in this case?

Thanks in advance! Even reading down to here is more than I expect ;)

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to