Compared to the Ruby one, of course. Semantic tree > string mangling.
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 significantly larger and less readable than either of the others. There's likely a significantly simpler implementation somewhere deep in Java's frameworks, but ouch.
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 significantly larger and less readable than either of the others. There's likely a significantly simpler implementation somewhere deep in Java's frameworks, but ouch.