will method-handle objects directly provide ability invoke methods using multiple-dispatch. if so, double-dispatch supported, or dispatching mechanism take many arguments necessary account? if multiple dispatch supported, code examples particularly appreciated.
thanks in advance,
mackenzie
i doubt it. not listed on openjdk feature list http://openjdk.java.net/projects/jdk7/features/, , have seen nothing suggesting inclusion. also, question tops google search "java 7 multiple dispatch." stack overflow has exception seo, suggests no discusion. also, multiple dispatch inherently slower, , require both jvm , language changes make work well, dont see being included in near term.
note: visitor pattern can used avoid of need multiple dispatch.
Comments
Post a Comment