Posted by forax
on January 8, 2011 at 7:13 AM PST
When the JSR 292 was started, it was clear that the users of this new API was dynamic(ally typed) languages so the package was naturally named java.dyn
But it's is clear now that Java (the language) is also a potential user of this API, by example, the actual plan to implement Java lambda uses several features introduced by JSR 292 (see section 3 of JSR 335 ).
So, the name java.dyn is less accurate.
It's time to rename this package before freezing the API.
Brian Goetz and Mark Reinhold propose to rename it to java.lang.mh, mh stands for MethodHandle which is a central class in the design of the API.
I'm not a big fan of that name, I mean it's Ok but I find it too reductive. In the same time, I was not able to find a better name :)
So this is a community call, what is you favorite package name for JSR 292 API knowing that it has to be a subpackage of "java" and that short names (two/three letters) are better ?
There is no garantee that your favorite name will be chosen but I will be a strong suppporter of the name chosen by the majority.
So Java community please help us to find a good name, I wait your comments.
Edit 01/13/10: as several of you noticed there is no real need for a 3 letters package name and the actual content of java.dyn can be seen as a better invocation mechanism. So java.dyn will be renamed to java.dyn.invoke, java.lang.dyn was abandonned because we decide instead of having a giant package that future developements of JSR 292 will be done into several packages (by example java.lang.coroutine if we decide to add coroutine (I will love that)).
I would like to thank all of you to share a part of your brain with us. It was really helpful.