Re:JDK 9 release schedule
by clusmore on Tuesday October 18, 2016 @07:31PM
(#12739668)
I agree that setter properties are often a code smell, but getter properties are nice for calculated fields. As a very simple example, consider the following (C#):
[ Parent
| on HN ]
Re:JDK 9 release schedule
by lacampbell on Tuesday October 18, 2016 @08:50PM
(#12740063)
Diameter is a nice example of a getter property. However you could change radius to simply
public int Radius;