jaunt-lang / jaunt

[ABANDONED] A jaunt away from Clojure
https://github.com/jaunt-lang/jaunt/issues/157
134 stars 6 forks source link

Add compiler support for Java varargs #156

Open arrdem opened 8 years ago

arrdem commented 8 years ago

In Java, varargs methods are rewritten so the trailing ... argument becomes an Object[] parameter. This makes interacting with variadic Java methods obnoxious at the least, because a user must either remember to add a trailing nil if they are passing 0 varargs, or themselves construct and populate the Object[] parameter. What with Jaunt's general bent towards a smoother UX, this would be a pretty obvious feature to add.

Prior art: