From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Danny YUE Newsgroups: gmane.emacs.help Subject: Re: [OT] What langauges have symbols? Date: Sat, 01 Jul 2017 08:59:34 +0800 Message-ID: <87wp7t2cqx.fsf@gmail.com> References: <87efu2w1ak.fsf@jane> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1498870990 311 195.159.176.226 (1 Jul 2017 01:03:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Jul 2017 01:03:10 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.2.1 To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 01 03:03:06 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dR6oP-0007r5-2C for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Jul 2017 03:03:01 +0200 Original-Received: from localhost ([::1]:46462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dR6oR-0000X2-5L for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jun 2017 21:03:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dR6nw-0000WX-OJ for help-gnu-emacs@gnu.org; Fri, 30 Jun 2017 21:02:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dR6nt-0008Rz-M1 for help-gnu-emacs@gnu.org; Fri, 30 Jun 2017 21:02:32 -0400 Original-Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:36255) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dR6nt-0008QZ-Fd for help-gnu-emacs@gnu.org; Fri, 30 Jun 2017 21:02:29 -0400 Original-Received: by mail-pg0-x243.google.com with SMTP id u36so16854860pgn.3 for ; Fri, 30 Jun 2017 18:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:in-reply-to:date:message-id :mime-version; bh=PAjgan4CL+khAi9+Q/P1Ilwq20ClnSbJwiOZh9a7QjY=; b=m4splRatr/XPIuBZY6LfTaBzIElKXIl4nmlhhnnqljqZcYdM5hgQRFB/cW6CTVqxUd ejQw9KujNaBPAUMTyMX9CfM/pcJmcoSwA+ni/rTn7oN7qcyc8QucNo0g5/g5awtQQDzI 09SkOheYHEGbm3jzpoToBNajv9zU4mIhapQkbhZkIh+6yKp+1vFw/ncSpwnbGOWnqwWB fNm9EqFAAEzuxpEJ6Q6ez2fzFzOLRua//hijJ0IN0gGOJHxVfmAGgBQR6RqXUwCjYSUZ CbTW0YoZFgt/oNfhKyf3cxZvobl6A/Zmey1LnuDQe361Gq6U8TWBlMQNA7GYtF/PESNg tRMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:date:message-id:mime-version; bh=PAjgan4CL+khAi9+Q/P1Ilwq20ClnSbJwiOZh9a7QjY=; b=FOb5odYka+wfjq2/BjyIFJy9ObKWnRPWv+PqAn8OnmHRnGCwWqlc+yz29/onysJ4bR /05egR+QkgHo97xfNA2J96QoxMOToMY6YbEixXpnPsjK51e/vYcaCsKPpV4+Dy6oOZ0n uyXc9iw2/UdU2m/XKbvwvTLo6f2KDu3p3xmTqxKZXcyOTOtUGXUKSPI1R7g/sp8CKVdW /3Rug+PxHdXt+0MDG8M1JCYIOPfGsoGxx4Lnx1FSRr3Jziurw1jCZo+JXdvg9ZnTngj4 bwWCOJ8L5M3ZX+wW6PwQkgtN+67Mn9Z8xAPze9Kf4oaUPKVOChGD9AB3HuWSXUAkrTsJ dMIw== X-Gm-Message-State: AKS2vOwDxP3uVy/Hqz1QPzvQXKalmhV4P5UeIR0Zb0kkL8pHTD69WyxQ kFCTn5oYOMMjs+Zt+ss= X-Received: by 10.84.136.36 with SMTP id 33mr19916365plk.123.1498870946206; Fri, 30 Jun 2017 18:02:26 -0700 (PDT) Original-Received: from localhost (23.83.238.120.16clouds.com. [23.83.238.120]) by smtp.gmail.com with ESMTPSA id n123sm15754376pga.35.2017.06.30.18.02.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jun 2017 18:02:24 -0700 (PDT) In-reply-to: <87efu2w1ak.fsf@jane> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::243 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113627 Archived-At: On 2017-06-30 04:24, Marcin Borkowski 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