The "final" keyword, means that the variable reference itself can't be modified, but it doesn't impose or suggest any restrictions on the contents of the variable.
You can absolutely mutate/change the contents of a final variable and communicate state through that between different closures or different parts of the application. On Sep 12, 3:30 pm, Josh Berry <[email protected]> wrote: > That is, if we had true closure (even without first order functions), > you could declare two of them that communicated through a mutable > variable. Correct? (This is a legitimate question, not a rhetorical > trick.) -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
