-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve scala autotranslation #7618
Comments
|
@jpallas any advice on how to do this right? |
I don't know about "right", but maybe we can try for "more useful". 😀 Seriously, there are a couple of issues. Least of these is the complaint about the implicit conversion, which is somehow due to using So, a good question to answer might be "What should Given that, a fundamental problem is that there is no meaningful return type information for lookups. That lands us in the world of runtime reflection, a world that Scala does not like very well. I think there are two main choices: make the user supply an explicit type (which we can either try to validate or just trust) or wrap the return values of any operations on My gut says that at some point if we care about importing a value into Scala, we will need to declare a type. The question is when. There's a secondary problem, which is that the auto translation stuff is mapping all the incoming collections into Java types instead of Scala types. I suspect this is related to the fact that |
Thanks Joe. I think the last point about using Scala types is a good place to start. |
I've been thinking about a similar approach, taking advantage of the way that I wish there were a way to validate the type at runtime, so it would be more than just a shorthand for The main thing that bothers me about |
The text was updated successfully, but these errors were encountered: