managed-commons / stab-language

Automatically exported from code.google.com/p/stab-language
Apache License 2.0
5 stars 3 forks source link

Are implicitly typed variables applied to field variables ? #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Can implicit typed variables applied to field variables?

For example:

public class Buffer {
    private final var buf = new StringBuilder();
}

Original issue reported on code.google.com by ice.ta...@gmail.com on 26 Jun 2010 at 4:17

GoogleCodeExporter commented 9 years ago
'var' only applies to local variables.
I don't think it would be a enhancement to have implicitly-typed fields because 
most of the time fields are initialized in constructors.

Original comment by stab.hac...@gmail.com on 26 Jun 2010 at 11:36