News for hackers. Stuff that matters.
Re:Google Java Annotations Gallery by alsocasey on Monday May 27, 2013 @01:16PM (#5775483)

    @Metaphor
    public interface Life extends Box<Chocolate> {
    }
Shouldn't this be @simile?
Re:Google Java Annotations Gallery by kinofcain on Monday May 27, 2013 @05:11PM (#5776608)
I think it's valid since Life, in this case, extends Box of Chocolates and therefore "is a" Box of Chocolates. If Life had implemented the same interfaces or extended the same parent class as Box of Chocolates, then it would be a @simile as Life, in that case, would be "like a" Box of Chocolates.
Re:Google Java Annotations Gallery by sah2ed on Monday May 27, 2013 @05:06PM (#5776583)
The use of metaphor here is correct.

"SIMILE: a figure of speech comparing two unlike things that is often introduced by like or as (as in cheeks like roses).

“She's as fierce as a tiger” is a simile, but “She's a tiger when she's angry” is a metaphor."

Re:Google Java Annotations Gallery by eip on Tuesday May 28, 2013 @04:31AM (#5778885)
"Life is like a box of chocolates"
Re:Google Java Annotations Gallery by yohui on Monday May 27, 2013 @07:34PM (#5777160)
Similes are a subset of metaphors, anyways.