@Property proposal
key
symbol |
meaning |
|---|---|
|
private |
|
protected |
|
public |
|
final |
Current
code |
field |
getter |
setter |
|---|---|---|---|
def x |
|
|
|
final x |
|
|
|
public x |
|
|
|
protected x |
|
|
|
private x |
|
|
|
public final x |
|
|
|
@Property x |
|
|
|
other permutations? |
|
|
|
Proposed
code |
field |
getter |
setter |
note |
|---|---|---|---|---|
def x |
|
|
|
|
final x |
|
|
|
the field doesn't need to be final IMHO (dk) My view is that the field should be final(tug) |
public x |
|
|
|
|
protected x |
|
|
|
|
private x |
|
|
|
|
public final x |
|
|
|
a public final field like in Java |
@Property x |
|
|
|
if it's still supported (MrG) My proposal is to remove it (tug) |
other permutations? |
|
|
|
what happens with static? (MrG) Sataic behave exactly the same(tug) |
