News for hackers. Stuff that matters.
Re:Java8 plugin that adds support for persistent local varia... by jannotti on Monday May 27, 2013 @10:05PM (#5777605)
Pretty neat. A simple transform, but I prefer this style and miss C's static in some cases.

The doc says that the transformed variable name uses the method name for a suffix to avoid name clashing. But it needs to use the signature, right? Else you would have clashes for two methods with the same name (but different arguments).

I think it should also use $, since that's the convention to avoid clashes with user defined names.

Re:Java8 plugin that adds support for persistent local varia... by cpeterso on Monday May 27, 2013 @11:51PM (#5777938)
Simply appending a number to the variable name would be adequate to prevent name conflicts. Each method would only access its own static variable, so fancy C++-style name mangling would be overkill.