On Tue, Jan 10, 2012 at 5:56 PM, bjconlan <bcon...@gmail.com> wrote:
> 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?

I think in Java a method like getFoo(int x, String... ys) actually
takes two args no matter what. That is to say the compiler will inject
an empty String[] if you call getFoo with only the first arg like
`getFoo(100)`.

The method that you demonstrated in Clojure seems to be the right
approach given the problem and the implementation details.

Regards,
BG

-- 
Baishampayan Ghose
b.ghose at gmail.com

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

Reply via email to