-
Notifications
You must be signed in to change notification settings - Fork 8
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
Translate to Value Type #91
Comments
What about a generic type converter which can take a source type and target type? |
A sort of configurable type coercion mechanism? To some degree you can already do that with the mvel support for invoking methods, but I culd imagine generalizing, sure. |
oliverzy: Out of curiosity, why do you want the source type option? Are you expecting to have multiple source types that translate to the same destination type? |
Yes, you are right, Geoffrey. That's what I am expecting. |
The basics of this are in place now with |
Moo doesn't really understand how to translate to value types; good support for this could be as simple as supporting constructors, although Moo should also come with the ability to handle at least all the wrapper types and very common value types within the JDK (String, Integer, Number, Float, Double, etc)
The text was updated successfully, but these errors were encountered: