[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
opaque data types
From: |
Stephen J. Turnbull |
Subject: |
opaque data types |
Date: |
Sat, 08 Jun 2013 15:11:59 +0900 |
Ted Zlatanov writes:
> Generally, I love how Lisp balances readability, accessibility, and
> power by limiting itself to data structures that are not opaque. The
> exceptions to that rule are the interesting edge cases :)
You mean exceptions like plists?
> (By contrast, Java
> On Fri, 07 Jun 2013 12:07:44 +0900 "Stephen J. Turnbull" <address@hidden>
> wrote:
ou
> makes data structures and objects impenetrable by
> default and requires nasty tricks to get introspection.
Introspection is a question of API design. The Lisp that you love is
a trivial design. There's one data structure: the cons.
Introspection is provided by the access functions and the repl.
On the other hand, you seem to like hash tables. How do you
introspect the number of buckets and the hash function in Emacs?
Another example: XEmacs takes you half-way there. It displays the
number of buckets in the un(read)able print representation.
- Re: plist-based package.el (was Re: cl-defstruct-based package.el, now with ert tests and no external tar!), (continued)
- Re: plist-based package.el (was Re: cl-defstruct-based package.el, now with ert tests and no external tar!), Stephen J. Turnbull, 2013/06/06
- opaque data types (was: plist-based package.el (was Re: cl-defstruct-based package.el, now with ert tests and no external tar!)), Ted Zlatanov, 2013/06/07
- Re: opaque data types, Christopher Schmidt, 2013/06/07
- Re: opaque data types, Ted Zlatanov, 2013/06/07
- Re: opaque data types, Christopher Schmidt, 2013/06/07
- Re: opaque data types, Ted Zlatanov, 2013/06/07
- Re: opaque data types, Christopher Schmidt, 2013/06/08
- Re: opaque data types, Ted Zlatanov, 2013/06/09
- Re: opaque data types, Stefan Monnier, 2013/06/07
- Re: opaque data types, Ted Zlatanov, 2013/06/07
- opaque data types,
Stephen J. Turnbull <=
- opaque data types [revise and resend], Stephen J. Turnbull, 2013/06/08
- Re: opaque data types [revise and resend], Ted Zlatanov, 2013/06/10
Re: plist-based package.el (was Re: cl-defstruct-based package.el, now with ert tests and no external tar!), Stefan Monnier, 2013/06/04