News for hackers. Stuff that matters.
Re:Java 7 : The new java.util.Objects class by jrockway on Friday April 02, 2010 @04:32PM (#1237505)
I chuckled at the function that takes an object as an argument and returns the same object as the result.

Yes, I know it throws an exception if it's null... but when your id function has side effects, it's a sign that your language is Just "not that great".

Re:Java 7 : The new java.util.Objects class by jganetsk on Saturday April 03, 2010 @03:44AM (#1238377)
The id function in Java has no side effects...

  public <T> T id(T t) {
    return t;
  } 
That's an id function. It works fine with nulls.

Where did anyone say that java.util.Objects was providing an id function anyway?