任何关于Java中的泛化泛型的术语? [英] Any word on reified generics in Java?

查看:199
本文介绍了任何关于Java中的泛化泛型的术语?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题可能引发更多的讨论而不是具体的答案(我知道这不是最好的)。但是,最近甲骨文收购了我,想知道是否有人会说Java可能(有一天)会获得泛化的泛型?我听说Oracle希望给Java一些提升,我可以想到没有更好的办法。

I know this question will probably provoke more discussion than concrete answers (which I know isn't preferable). But with the recent acquisition by Oracle, I was wondering if there's been any word that Java might (someday) get reified generics? I've heard that Oracle wants to give Java a bit of a boost, and I can think of no better way.

推荐答案

关于泛化泛型的讨论有一篇很好的文章, here ,你应该阅读Java。基本上它概述了引入这种变化可能发生的一些陷阱。当你考虑它时,向后兼容是相当残酷的。如果您想知道它来自哪里,请在 Hacker新闻中选择它。

There's a good article on the discussion of reified generics, here, that you should read in regards to Java. Basically it outlines some of the pitfalls that might happen with the introduction of such a change. It's fairly brutal for backwards compatibility when you think about it. Picked it up on Hacker News if you're wondering where it came from.

请多关注为Java添加闭包。不再需要像功能性Java 等之类的东西一样的东西(相反,它们不好,相反。)

Be grateful that there's talk of adding closures to Java. No more having to slog through with only things like Functional Java and their ilk (not that these were bad, on the contrary.)

这篇关于任何关于Java中的泛化泛型的术语?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆