From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: User-reserved element in byte code vectors Date: Thu, 06 May 2004 07:48:58 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <85smepfzqo.fsf@junk.nocrew.org> <85ad0wfkms.fsf_-_@junk.nocrew.org> <85oepcdts4.fsf_-_@junk.nocrew.org> <85vfjf9s4j.fsf@junk.nocrew.org> <20040502094316.GB2836@fencepost> <85fzaiakb9.fsf@junk.nocrew.org> <20040503195701.GD21891@fencepost> <85ekpz5twj.fsf@junk.nocrew.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083845594 23477 80.91.224.253 (6 May 2004 12:13:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 May 2004 12:13:14 +0000 (UTC) Cc: lars@nocrew.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu May 06 14:13:07 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BLhkQ-0001it-00 for ; Thu, 06 May 2004 14:13:06 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BLhkP-0006Ep-00 for ; Thu, 06 May 2004 14:13:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLhhe-0008Di-1f for emacs-devel@quimby.gnus.org; Thu, 06 May 2004 08:10:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BLheJ-0007UJ-WC for emacs-devel@gnu.org; Thu, 06 May 2004 08:06:47 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BLhN8-0004JT-F0 for emacs-devel@gnu.org; Thu, 06 May 2004 07:49:33 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLhN7-0004J5-Nf for emacs-devel@gnu.org; Thu, 06 May 2004 07:49:01 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1BLhN4-0000lm-Cn; Thu, 06 May 2004 07:48:58 -0400 Original-To: Miles Bader In-reply-to: (message from Miles Bader on 06 May 2004 13:56:39 +0900) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22846 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22846 > So for example: > > (curry '+ 1 2 3) > => #[curry + 1 2 3] BTW, some other advantage of such a representation -- * Having a name explicitly attached make it easier to see what it is, even if you've never encountered such a thing before, the "#[" tells you `hey it's connected with the lisp evaluator', and the first-element name gives you strong clue to determine just exactly what. * It leaves a clear path for other special magic-callable objects. E.g., another very useful notion is that of `reverse currying', where the curried arguments get attached to the _end_ of the argument list at call time, which could look like #[rcurry ...]. This seems like a good idea to me.