ram@zedat.fu-berlin.de (Stefan Ram) writes:
{ final Button button = new Button(); frame.add( button ); }
I also use blocks to clarify the scope of a comment
(when extracting a method is no better solution):
alpha();
{ /* add a button to the frame */
final Button button = new Button();
frame.add( button ); }
beta();
I teach both the use of omitable [sic] ??final?? keywords and the
use of omitable blocks (which both serve only to enhance
readability) in my classes right from the beginnig. In fact,
I start to teach /all/ variable declaration and parameter
declarations with ??final?? and later explain when ??final?? can
be removed.
(Many English dictionaries do not have an entry ??omitable?? [sic].
This word is intended to mean the following above: An omitable [sic]
part of the source code often [but not necessarily always]
can be removed without changing the behavior of the program.)
Dictionaries frequently do not list all possible inflections of a word. In
"omittable" (note the double "t") without a separate entry.
Honi soit qui mal y pense.