Drifting further off topic, but oh well...On 7/17/06, Charles O Nutter <[EMAIL PROTECTED]> wrote:
The other half of this is that named parameters *may* increase readability, but I don't think that's the real purpose. 99% of the method calls I make are passed mostly variable names. How could fetchRe
On 7/17/06, Paul Hammant <[EMAIL PROTECTED]> wrote:
I guess we're going to disagree on whether parameter names shouldeternally remain contractual or not, or subject to revision despiteeveryone's hope that that many be avoided. I see libraries and appsthat code against param names to to be on the p
I guess we're going to disagree on whether parameter names should
eternally remain contractual or not, or subject to revision despite
everyone's hope that that many be avoided. I see libraries and apps
that code against param names to to be on the periphery for Java,
never the main stream.
Named parameters may be an issue in the future. Ruby 2.0 is supposed to support named parameters, which could potentially complicate compilation for us. It could also just be an arg-processing issue, reordering incoming parameters to match up with the order of names.
I read your blog entries (Paul)
>
> Seems like it could be do-able. If you don't strip the parameter
> names when you compile the Java code, they're available in the
> class files. You'd have to separately parse the class files to
> discover them, though since they're not exposed in the reflection
> API. It could be a
On 7/15/06, Paul Hammant <[EMAIL PROTECTED]> wrote:
Are there any conceivable JRuby apps that would want to deal withparameter names instead of parameter types? Some terse Rails-likescript that touches Java instance methods pretty directly (or throwsa no such method error)? I'm imagining somethin
This is more related to the 'extra' things that a Ruby-on-JVM though
could do beyond 'simple' Ruby/Rails compatibility.
Reflection.getMethod(..) allows you to specify a method name and an
array of types, to return a Method instance.
Are there any conceivable JRuby apps that would want to deal