4 ms·
I know this is blasphemy in the Java world, but I'd probably use a preprocessor to transform some clean syntax into the normal Java code. I'd rather have the sl
by tzs 14y ago
I know this is blasphemy in the Java world, but I'd probably use a preprocessor to transform some clean syntax into the normal Java code. I'd rather have the slight increase in build complexity over the potential issues with the extra classes and the breaking of assumption about how things compare and such.
- jlgreco 14y agoI have always been extremely tempted to just throw together a quick and dirty preprocessor in maybe Awk for the few personal projects that I've used Java for. It would just make everything so much nicer.
- deleted 14y ago[deleted]
- syjer 14y agoSomething like Xtend ( http://www.eclipse.org/xtend/ http://www.eclipse.org/xtend/ ) ?
- warmwaffles 14y agoNever heard of this. Thanks
- guard-of-terra 14y agoYour IDE would complain all the time. Seriously, you lose one of a few good parts, stellar IDE support. Why bother with Java then?
- ExpiredLink 14y ago> I'd probably use a preprocessor to transform some clean syntax into the normal Java code. If I were in your place, I'd just learn enough Java to be proficient. Java is a very powerful language and certainly better suited for mundane tasks than your preprocessor.
- mindslight 14y agoI think you misunderstood; he wants to avoid doing mundane tasks. There's a couple of extensible preprocessors that aim to do exactly this. They're called 'clojure', 'scala', and 'kawa'.