Compared to the Ruby one, of course.  Semantic tree &#62; string mangling.<p>I'm not a Java hater (I just think it's a horrible language to start in), but I'll make the counter-point that the Java approach is <i>significantly</i> larger and less readable than either of the others.  There's likely a significantly simpler implementation somewhere deep in Java's frameworks, but ouch.