[GUI] Another RFC on setting and getting.
Alastair Reid
alastair@reid-consulting-uk.ltd.uk
Mon, 07 Apr 2003 09:23:17 +0100
Glynn Clements <glynn.clements@virgin.net> writes:
> Read-only or write-only attributes could be implemented by throwing
> an error for prohibited operations. Read-only attributes could be
> implemented by simply ignoring write operations.
If there is an alternative design which would allow errors to be
reported statically (e.g., by using the typesystem or by not providing
a 'set' operation for the offending attribute or whatever), then I
think it would be significantly better. One of Haskell's huge
strengths is that static error detection catches so many errors that
would otherwise make it through to be caught by (dynamic) testing or
included in released systems.
--
Alastair Reid alastair@reid-consulting-uk.ltd.uk
Reid Consulting (UK) Limited http://www.reid-consulting-uk.ltd.uk/alastair/