From: Marcin Borkowski <mbork@mbork.pl>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: [OT] What langauges have symbols?
Date: Fri, 30 Jun 2017 06:24:19 +0200 [thread overview]
Message-ID: <87efu2w1ak.fsf@jane> (raw)
Hi there,
this is clearly OT, but where could I ask that?
What langauges besides Lisps have "symbols"? And I not only mean the
name, of course, but also the properties. For instance, ES6 seems to
have something similar, but it seems to me that you can't have
a variable containing a symbol and say something like
(set var val)
where val is assigned to a variable whose name is the value of var
(i.e., that symbol).
In Elisp, OTOH, you can say e.g.
(set (intern "some-string") 123)
(+ some-string 1)
and obtain 124. My point here is that you can now use a variable called
"some-symbol" without any additional syntax sugar. In yet another
words, we have both set and setq, whereas most languages seem to only
have an equivalent of setq.
TIA,
--
Marcin Borkowski
next reply other threads:[~2017-06-30 4:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-30 4:24 Marcin Borkowski [this message]
2017-06-30 5:15 ` [OT] What langauges have symbols? Yuri Khan
2017-06-30 6:10 ` Eli Zaretskii
2017-07-01 0:59 ` Danny YUE
2017-07-01 3:11 ` Emanuel Berg
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=87efu2w1ak.fsf@jane \
--to=mbork@mbork.pl \
--cc=help-gnu-emacs@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.