I need your opinion...

Patrick Moor patrick at moor.ws
Sat Mar 21 14:01:44 PDT 2009


John Rose wrote:
> 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.

use this as a template:
   http://bugs.sun.com/view_bug.do?bug_id=4459053

  - patrick

> 
> -- 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