views:

110

answers:

3

Will structs and value types (like C#'s) be included in Java 7?

+1  A: 

Not that I've seen in any proposals - and I'm pretty sure we'd have heard about it by now.

Note that this would be a very significant JVM change, rather than just a language change as many of the existing proposals are.

Jon Skeet
A: 

It's not listed among the features expected according to the Java Wikipedia page. It would also require a very large (and almost certainly breaking) change in the JVM.

James Curran
A: 

that's actually not the best thing from c# which you can borrow, I think that stuff like

var x = 1;
list.Select(o => o.Something = true) lambda expressions

and some stuff from as or javascript like:

o = new Object();
o.MyNewProp = 5
o.Do = new Function(){}

would be much better

Omu