Re:Java8 plugin that adds support for persistent local varia...
by depsypher on Monday May 27, 2013 @10:46PM
(#5777734)
But why? Is it just to prove you can (then fair enough) or is there a good reason to use this that I'm missing?
[ Parent
| on HN ]
Re:Java8 plugin that adds support for persistent local varia...
by revscat on Monday May 27, 2013 @11:34PM
(#5777881)
This seems more easily parsed by humans. My immediate faction to this is a positive one. Instead of having to scan the entire class to tell whether or not a variable is static, it's declared in the method itself.
Re:Java8 plugin that adds support for persistent local varia...
by huherto on Tuesday May 28, 2013 @02:00AM
(#5778364)
I don think it is very useful or practical. A similar effect can be done using static variables declared outside the methods.
But it is a good example on how to write a plugin, with annotations and instrumentation. So the interesting parts are on the code implementing this functionality.
Re:Java8 plugin that adds support for persistent local varia...
by saryant on Monday May 27, 2013 @11:28PM
(#5777857)
I'm a little unclear on its purpose myself.
Also, it seems like (if abused) it would make unit testing really cumbersome without some sort of side-effecting mechanism to expose these persistent variables.