all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: opaque data types (was: plist-based package.el (was Re: cl-defstruct-based package.el, now with ert tests and no external tar!))
Date: Fri, 07 Jun 2013 09:03:49 -0400	[thread overview]
Message-ID: <87sj0uqdhm.fsf_-_@lifelogs.com> (raw)
In-Reply-To: 87li6maa9r.fsf@uwakimon.sk.tsukuba.ac.jp

On Fri, 07 Jun 2013 12:07:44 +0900 "Stephen J. Turnbull" <stephen@xemacs.org> wrote: 

SJT> Aaahhhh, *hash* *tables*.  Now I like where you're headed!  An opaque
SJT> type, the modern programmer's heartthrob.  I have to agree with you
SJT> there.  "Opaque types are one honkin' great idea!  We should do more
SJT> of those."[1]

SJT> Footnotes: 
SJT> [1]  With apologies to Tim Peters.

I'd really like an opaque "password" type that doesn't print unless
retrieved with a special function, and is stored encrypted in memory.
Currently auth-source.el uses a closure for that, which is not ideal.
It's on my TODO list for some rainy day.

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 :)

(By contrast, Java makes data structures and objects impenetrable by
default and requires nasty tricks to get introspection.  And on top of
that we have Guava, Scala, and Clojure... amazing!)

Ted




  reply	other threads:[~2013-06-07 13:03 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-04 22:44 plist-based package.el (was Re: cl-defstruct-based package.el, now with ert tests and no external tar!) Daniel Hackney
2013-06-04 23:01 ` Dmitry Gutov
2013-06-05 14:53   ` Ted Zlatanov
2013-06-05 17:41     ` Stefan Monnier
2013-06-05 17:56       ` Drew Adams
2013-06-05 18:06         ` Ted Zlatanov
2013-06-06  9:30           ` Stephen J. Turnbull
2013-06-06 12:51             ` Ted Zlatanov
2013-06-07  3:07               ` Stephen J. Turnbull
2013-06-07 13:03                 ` Ted Zlatanov [this message]
2013-06-07 13:27                   ` opaque data types Christopher Schmidt
2013-06-07 14:11                     ` Ted Zlatanov
2013-06-07 15:44                       ` Christopher Schmidt
2013-06-07 16:01                         ` Ted Zlatanov
2013-06-08  9:19                           ` Christopher Schmidt
2013-06-10  3:56                             ` Ted Zlatanov
2013-06-07 16:17                   ` Stefan Monnier
2013-06-07 17:48                     ` Ted Zlatanov
2013-06-08  6:11                   ` Stephen J. Turnbull
2013-06-08  6:28                   ` opaque data types [revise and resend] Stephen J. Turnbull
2013-06-10  4:00                     ` Ted Zlatanov
2013-06-05  1:34 ` plist-based package.el (was Re: cl-defstruct-based package.el, now with ert tests and no external tar!) Stefan Monnier
2013-06-06  1:31   ` Daniel Hackney
2013-06-08  6:47     ` Rand User

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sj0uqdhm.fsf_-_@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.