Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well, java is retarded, so the standard trick is to declare an array of size one and declare the array itself as final. So you can't change the array object but you're certainly free to change the object it contains. Stupid? As all hell. Makes static local classes much closer to closures, though, even if twenty times as lengthy to write.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: