[antlr-interest] add a tree visitor?

Andy Tripp antlr at jazillian.com
Tue Oct 28 15:20:39 PDT 2008


Terence Parr wrote:

>> And the Java 1.5 foreach and generics would make the code cleaner.
> 
> I hate that syntax because it looks so nice, but crashes if you have a 
> null list. stupidest thing I've ever seen in my life. 


Hehe, yea, I guess I've finally just gotten used to allocating an empty
List at each declaration.

> plus, I can't rely 
> on 1.5 yet.

That's too bad. Are there really a fair number of people who aren't on
1.5 yet? 

> 
> I agree it would be nice if that syntax did something nice. :) don't get 
> me started on how bad the generic stuff works when you want List<AST> to 
> work with List<MyAST>. blech. renders it useless. sorry to be so 
> negative on a Tuesday morning. Just getting sick of all of these Java 
> "enhancements".

Yea, I was very skeptical about the 1.5 enhancements, but now I'm a convert.
Though of course I wretch when confronted with having to use generic wildcards,
like everyone else :)

Andy
> 
> Ter
> 



More information about the antlr-interest mailing list