I need your opinion...

John Rose John.Rose at Sun.COM
Sat Mar 21 13:40:38 PDT 2009


On Mar 21, 2009, at 12:52 PM, Marek Kozieł wrote:

> Allow final variables and final Fields (except blank final), to not
> having explicit Type.

Yes.  Someone should work exactly this (and no more) into a separate  
proposal, if it hasn't been done already.

-- John

Alternatives: "? foo" would sort of work since the "?" works, as a  
wildcard, for some other type uses, but it is way too strange  
looking.  A new declare-and-assign operator would be nice for a wrist- 
friendly language, but IMO it is too different from existing Java  
declaration syntaxes.  Beyond subjective esthetics, consistency of  
syntax is important to both mechanical and biological parsers.   
Meanwhile, "final" variables avoid ambiguities about programmer  
intention for additional assignments to mutable variables, so "final"  
works with extra grace for auto-typed variables.




More information about the coin-dev mailing list