PROPOSAL: 'final' without explicit type (update)

Tim Lebedkov tim.lebedkov at googlemail.com
Wed Apr 1 02:00:06 PDT 2009


Hello Marek,

now it's more clear to me why you use 'final'.

Thanks
Tim

On Tue, Mar 31, 2009 at 3:58 PM, Marek Kozieł <develop4lasu at gmail.com> wrote:
> W dniu 31 marca 2009 15:43 użytkownik Tim Lebedkov
> <tim.lebedkov at googlemail.com> napisał:
>> Hello Marek,
>>
>> my proposal (http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/001055.html)
>> is very similar to yours (it just uses 'auto' instead of 'final').
>>
>> Does yours declare variables as final (I mean here 'constant') only
>> because you try to avoid introducing a new keyword? Or is there
>> another motivation?
>>
>> Tim
>>
>
> First of all I want Java to have clear separation on variables and values.
> And then:
> - variables should have explicit type.
> - values should have clear context;
>
> While now people use variables even if they need value, it's because
> cost using value is higher than using variable. This provide worse
> code, more bugs, and provoke reusing variables.
>
>
> --
> Pozdrowionka. / Regards.
> Lasu aka Marek Kozieł
>
> http://lasu2string.blogspot.com/
>



More information about the coin-dev mailing list