Re: an idea about possreps

From: Jan Hidders <hidders_at_gmail.com>
Date: Sun, 3 Feb 2008 06:59:01 -0800 (PST)
Message-ID: <e0e0a96f-8376-42bb-9d28-5ae61e9114bc_at_q77g2000hsh.googlegroups.com>


On 3 feb, 05:31, Marshall <marshall.spi..._at_gmail.com> wrote:
> I just had this idea about possreps.
>
> In another context, someone discussing methods, or functions
> that are bound very closely to a specific type, commented
> that he thought that such functions should be extremely
> limited, rather than the grab-bag that OOP usually produces.
> I thought this a rather interesting comment, and after thinking
> about it for a long time decided it was a good comment,
> but that I didn't really know how to measure how well a
> design achieved that goal.

That's actually not that hard. You can formalize this by introducing a notion of completeness that says that a set of operations for a certain type / domain is complete if it holds that when we add the domain / type and its operations to a computationally complete programming or query language it stays computationally complete (*).

A set of operations is then called essential for a domain if any proper subset of them is not complete in the above sense. Note that this set is not necessarily unique.

(*) Computationally complete is a stronger notion than Turing complete. In many cases the two coincide, but here their difference matters. Roughly it means that for all types available in the language you can express all computable functions over these types.

  • Jan Hidders
Received on Sun Feb 03 2008 - 15:59:01 CET

Original text of this message