On Saturday, 15 March 2014 at 18:18:28 UTC, Walter Bright wrote:
On 3/15/2014 2:21 AM, Paulo Pinto wrote:
In any language with properties, accessors also allow for:

- lazy initialization

- changing the underlying data representation without requiring client code to
be rewritten

- implement access optimizations if the data is too costly to keep around

You can always add a property function later without changing user code.

Cough getopt.

Reply via email to