From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fren Zeee Newsgroups: gmane.emacs.devel Subject: Re: How to remove verbosity from the data passing mechanism using alist or plist ? Date: Tue, 7 Dec 2010 15:08:37 -0800 Message-ID: References: <87lj43at0i.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291763336 12289 80.91.229.12 (7 Dec 2010 23:08:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Dec 2010 23:08:56 +0000 (UTC) Cc: "Emacs Dev \[emacs-devel\]" To: Chad Brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 08 00:08:49 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQ6eO-0007md-GG for ged-emacs-devel@m.gmane.org; Wed, 08 Dec 2010 00:08:48 +0100 Original-Received: from localhost ([127.0.0.1]:40261 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQ6eN-0004u9-WF for ged-emacs-devel@m.gmane.org; Tue, 07 Dec 2010 18:08:48 -0500 Original-Received: from [140.186.70.92] (port=42123 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQ6eG-0004sd-47 for emacs-devel@gnu.org; Tue, 07 Dec 2010 18:08:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQ6eE-00007o-NB for emacs-devel@gnu.org; Tue, 07 Dec 2010 18:08:39 -0500 Original-Received: from mail-iw0-f178.google.com ([209.85.214.178]:42324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQ6eE-00007W-HD for emacs-devel@gnu.org; Tue, 07 Dec 2010 18:08:38 -0500 Original-Received: by iwn1 with SMTP id 1so562965iwn.9 for ; Tue, 07 Dec 2010 15:08:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=kG+BHlkDn2eJVKIgd1irZK4LYKWPteZ6muuk7XyudcE=; b=F4R4xbxg8QmcxJGn/BmechTFClO9sg1AP1lebgTz7JCRuMZmwwWaJ4Lsustm08T0PA Ztncp3pjJOr2u25mr/5/8mkGOQO3ZWdNls0t8M811Q7eHBMMEDg4n5zfBBIHfkchLBBm 72rXGrAUV1m+mqJYNf/bo+KITMvCHD7QEsEjY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=pfChzFD6Uu2NeD+p5Oh4pfpTHaIcRPv1sW1ZOgrLYBPvG0Uixy/73zMz4SLUZlZbGz ZT28hPjdetHREwNXO6KsnI1af4uEuro7PUTWMqJS+sqP8Y1Bx4jupL1GNIBEPAzj4vzb hk1lYK+hdaJj9eAegEAPHwFjOouZgxqxJ7O3Y= Original-Received: by 10.231.200.134 with SMTP id ew6mr5494329ibb.13.1291763318024; Tue, 07 Dec 2010 15:08:38 -0800 (PST) Original-Received: by 10.231.35.195 with HTTP; Tue, 7 Dec 2010 15:08:37 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133522 Archived-At: On Tue, Dec 7, 2010 at 1:48 PM, Chad Brown wrote: > On Dec 7, 2010, at 1:24 PM, Fren Zeee wrote: > >> The question is VERY CLEAR !!! and SPECIFIC at the LAST STAGE !!! > > Even with the CAPITAL LETTERS and the TRIPLE EXCLAMATION > POINTS!!!, I still have no idea what you're trying to accomplish. > > Perhaps you would be helped by evaluating both of these in emacs: > > =A0 =A0 =A0 =A0(pp (list 1 2)) > =A0 =A0 =A0 =A0(pp (cons 1 2)) > > or perhaps: > > =A0 =A0 =A0 =A0(pp (list (list 1 2) (list 3 4))) > =A0 =A0 =A0 =A0(pp (list (cons 1 2) (cons 3 4) (cons 5 6))) > > I say `perhaps', because I don't really know what you're trying to accomp= lish. Its in the title How to remove verbosity from the data passing mechanism using alist or plis= t ? > I hope that helps, > *Chad Yes it helped, but I cant honestly see the difference between (a . b) <--- from cons and (a b) <--- from list both seem to be dotted pair although the dot is implicit in the second. We are getting to the heart of the thing, ie concept, although the problem is solved in that I have the answer (assoc-default 1 (list (list 1 2) (list 3 4) (list 5 6))) ------> (2) so I need xtra car verbose (assoc-default 1 (list (cons 1 2) (cons 3 4) (cons 5 6))) ------> 2 so I dont need xtra car Mercifully, the earlier flame-bait was ignored. Thanks Chad. P.S. Now, lets see if you or someone can look at other points mentioned by Thien to remove the verbosity such as below or Thien's first reply of Dec 6. () Fren Zeee () Mon, 6 Dec 2010 07:41:21 -0800 > less piecewise-constructive and more table-oriented. I would certainly need a toy example or even ask for taking this example and showing me how to do it. I am not familiar with this table-oriented approach. I would rather help you understand those words than show you how to apply them. (This is more work for both of us, initially, but less work in the long run.) What do you think of when you read them?