help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why not "stripes" in: (let ((zebra 'stripes) ... ; strings vs symbo


From: Thien-Thi Nguyen
Subject: Re: why not "stripes" in: (let ((zebra 'stripes) ... ; strings vs symbols?
Date: Mon, 30 Dec 2013 18:21:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

() Damien Wyart <address@hidden>
() Mon, 30 Dec 2013 14:19:47 +0100

   I don't understand, the elisp reference says that strings are atoms:
   http://www.gnu.org/software/emacs/manual/html_node/eintr/Lisp-Atoms.html

   and that the only type not being an atom is the cons cell, and AFAIK,
   strings are not cons cells.

   As a quick test, evaling
   (atom "mystring")
   returns t.

Right.  Emacs knows only ‘atom’, but programmers know concepts beyond
those strict definitions.  That's why it's fun and confusing.  :-D

In this case, the tutorial is from one programmer to another, and i
imagine that if i were trying to communicate foundational concepts, i
would also choose an indivisible type (to start).  Calling it "atomic"
is simply ignorant post-facto rationalization of yet another programmer
trying to be concise and appear "wise" (hee hee).  Oh well, better luck
next time!

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

Attachment: pgpsVCLuvfwRy.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]