On Oct 11, 2012 5:00 AM, "Clint Priest" <cpri...@zerocue.com> wrote:
>
> Why is everyone so dead set against read-only and write-only?
>
> I could not disagree more with you on what is "pretty" and "readable".
>
> To me:
>
> public read-only $hours {
>                 get { ... }
> }
>
> Is infinitely more readable and understandable than:
>
> public $hours {
>                 get() { ... }
>                 private final set($value) { ... }
> }

Fully agreed. It is obvious and clear like water.

Cheers,
Pierre

Reply via email to