11 Replies - 13205 Views - Last Post: 12 May 2011 - 06:08 PM Rate Topic: -----

#1 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2858
  • View blog
  • Posts: 10,963
  • Joined: 15-July 08

All I Want for Java 8 is...

Post icon  Posted 01 May 2011 - 08:30 PM

http://www.javaworld...ty/?q=node/7653

Quote

With Java 7 considered practically a done deal (I've had it installed on my home computers as the primary JRE for weeks now), many of us are starting to dream about what might come with Java 8. In this post I briefly look at what I'd like to see in Java 8 before looking at some other folks' wish lists for Java 8. I'll end this post with my ideas on what it most likely to go into Java 8.


What do you all think? Should Java 8 include these features or should it have additional features? Thoughts?

Is This A Good Question/Topic? 0
  • +

Replies To: All I Want for Java 8 is...

#2 mostyfriedman  Icon User is offline

  • The Algorithmi
  • member icon

Reputation: 726
  • View blog
  • Posts: 4,473
  • Joined: 24-October 08

Re: All I Want for Java 8 is...

Posted 01 May 2011 - 08:53 PM

hmmm, make things more convenient. for example to create a BigInteger object, it would be more convenient to just assign a string literal to the variable, also operator overloading should be done on BigInteger methods so one could just use them instead of calling the methods which take more typing.
Was This Post Helpful? 2
  • +
  • -

#3 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2858
  • View blog
  • Posts: 10,963
  • Joined: 15-July 08

Re: All I Want for Java 8 is...

Posted 01 May 2011 - 09:00 PM

Good, I like that one!

**Fixed link in OP**
Was This Post Helpful? 0
  • +
  • -

#4 Luckless  Icon User is offline

  • </luck>
  • member icon

Reputation: 292
  • View blog
  • Posts: 1,146
  • Joined: 31-August 09

Re: All I Want for Java 8 is...

Posted 01 May 2011 - 09:07 PM

The ability to pass functions as parameters as in c++ would be nifty
Was This Post Helpful? 0
  • +
  • -

#5 kebomix  Icon User is offline

  • New D.I.C Head

Reputation: 8
  • View blog
  • Posts: 3
  • Joined: 07-January 10

Re: All I Want for Java 8 is...

Posted 02 May 2011 - 08:03 PM

Ability to Assign default values for method paramters in case you didn't pass any values while calling method.(like python)

 public void methodX(int x, int y=5) 

Was This Post Helpful? 2
  • +
  • -

#6 batesy3k  Icon User is offline

  • D.I.C Regular

Reputation: 41
  • View blog
  • Posts: 299
  • Joined: 10-September 09

Re: All I Want for Java 8 is...

Posted 04 May 2011 - 01:20 AM

I would like to see method overloading done as it is done in c# where you delcare methods as virtual to allow overriding in the derived class.

IMO it makes it easier to see what methods are being overriden.

Like so:
public class Animal
{
    public virtual void Speak()
    {
        Console.WriteLine("Animal Speaking");
    }
}


public class Cat : Animal
{
    public override void Speak()
    {
        Console.WriteLine("Cat Speaking");
        base.Speak();
    }
}



In the derrived class, all you have to do is start typing "public override" and you get a list of methods from the superclass that can be overriden

:)

This post has been edited by batesy3k: 04 May 2011 - 01:21 AM

Was This Post Helpful? 0
  • +
  • -

#7 nick2price  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 561
  • View blog
  • Posts: 2,826
  • Joined: 23-November 07

Re: All I Want for Java 8 is...

Posted 04 May 2011 - 03:07 PM

Quote

In the derrived class, all you have to do is start typing "public override" and you get a list of methods from the superclass that can be overriden

I dont think this is anything to do with the language, just whether the ide being used makes use of intellisense (or whatever its called!) I would be call to see virtual methods introduced though, although I think this is just a different approach to something which can be achieve similary in java.

One thing java really should look into finally is the improvement in speed of running trigometric functions. Shocking how slow these are processed. I also wish they would stop getting into projects, such as Java3D, just to completely ignore them when a new concept comes along. Finally, this is not related to java, but I really think someone should create a super language which takes the best aspects of various languages. I know that this may be difficult, at some stages impossible, but imagine how nice it would be to have one universal language which offers the best of everything!!
Was This Post Helpful? 0
  • +
  • -

#8 darek9576  Icon User is offline

  • D.I.C Lover

Reputation: 198
  • View blog
  • Posts: 1,672
  • Joined: 13-March 10

Re: All I Want for Java 8 is...

Posted 05 May 2011 - 08:30 AM

JOGL to be built into it rather than importing all the jars etc. It would make life much easier.
Was This Post Helpful? 0
  • +
  • -

#9 Programmist  Icon User is offline

  • CTO
  • member icon

Reputation: 251
  • View blog
  • Posts: 1,833
  • Joined: 02-January 06

Re: All I Want for Java 8 is...

Posted 06 May 2011 - 07:37 AM

View Postnick2price, on 04 May 2011 - 05:07 PM, said:

Finally, this is not related to java, but I really think someone should create a super language which takes the best aspects of various languages. I know that this may be difficult, at some stages impossible, but imagine how nice it would be to have one universal language which offers the best of everything!!

Groovy (and Groovy++).
Scala.
Was This Post Helpful? 0
  • +
  • -

#10 nick2price  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 561
  • View blog
  • Posts: 2,826
  • Joined: 23-November 07

Re: All I Want for Java 8 is...

Posted 06 May 2011 - 04:55 PM

I have actually been playing with scala, its deffinately something all java developers should try. I seriously think it will take over from java. Still some work left to do though to make it my superlanguage :bigsmile:
Was This Post Helpful? 0
  • +
  • -

#11 m-e-g-a-z  Icon User is offline

  • Winning
  • member icon


Reputation: 496
  • View blog
  • Posts: 1,453
  • Joined: 19-October 09

Re: All I Want for Java 8 is...

Posted 12 May 2011 - 03:17 AM

I'm not sure if this is coming in Java 7 but support for String type in switch statements.
Was This Post Helpful? 0
  • +
  • -

#12 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10186
  • View blog
  • Posts: 37,612
  • Joined: 27-December 08

Re: All I Want for Java 8 is...

Posted 12 May 2011 - 06:08 PM

I believe that is a Java 7 feature. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1