all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny YUE <sheepduke@gmail.com>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: [OT] What langauges have symbols?
Date: Sat, 01 Jul 2017 08:59:34 +0800	[thread overview]
Message-ID: <87wp7t2cqx.fsf@gmail.com> (raw)
In-Reply-To: <87efu2w1ak.fsf@jane>


On 2017-06-30 04:24, Marcin Borkowski <mbork@mbork.pl> wrote:
> 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,

Well, Ruby can be counted as one.

http://www.randomhacks.net/2005/12/03/why-ruby-is-an-acceptable-lisp/
https://news.ycombinator.com/item?id=12470715

I think Ruby can be understood as SmallTalk skeleton plus some lisp
spirit.

It has symbols, function keyword arguments, lambda and procedure as high
order function, can call function by name as
`object.send("func_name")`...

Not like "one single way to solve a problem" way, which is definitely
not what lispers like, Ruby provides basic magic and it is your decision
how to use the power.

I am not a Ruby expert, but I learned Common/Emacs Lisp for some years.
I always tried to find another language that are battery-included and
can compare with lisp.
(This is sad because Common Lisp standard has not been updated for too
long, and )

I tried some languages like Go but found it too far from the feeling
that Lisp brings to me, until I met up Ruby.

I think if you want something that can somehow replace Lisp in some
field, especially system scripts, websites or deployable applications,
you can apparently consider Ruby...


Danny



  parent reply	other threads:[~2017-07-01  0:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-30  4:24 [OT] What langauges have symbols? Marcin Borkowski
2017-06-30  5:15 ` Yuri Khan
2017-06-30  6:10 ` Eli Zaretskii
2017-07-01  0:59 ` Danny YUE [this message]
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=87wp7t2cqx.fsf@gmail.com \
    --to=sheepduke@gmail.com \
    --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.