From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: How to quote a list of functions? Date: Wed, 19 Aug 2015 01:46:07 +0200 Message-ID: <87zj1oyxc0.fsf@nl106-137-147.student.uu.se> References: <871tfdjqjx.fsf@mbork.pl> <87zj1vddkz.fsf@kuiper.lan.informatimago.com> <87mvxug2us.fsf@nl106-137-147.student.uu.se> <87vbch1gb0.fsf@nl106-137-147.student.uu.se> <87wpwudby7.fsf@nl106-137-147.student.uu.se> <87zj1qbwxs.fsf@kuiper.lan.informatimago.com> <87r3n2btjl.fsf@kuiper.lan.informatimago.com> <87mvxqbooi.fsf@kuiper.lan.informatimago.com> <87wpwt9xrv.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1439941725 23541 80.91.229.3 (18 Aug 2015 23:48:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2015 23:48:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 19 01:48:34 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZRqcF-0007WU-T7 for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Aug 2015 01:48:28 +0200 Original-Received: from localhost ([::1]:60021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRqcF-0005Ju-7e for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2015 19:48:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRqc3-0005Jo-D9 for help-gnu-emacs@gnu.org; Tue, 18 Aug 2015 19:48:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRqby-0004mo-Jz for help-gnu-emacs@gnu.org; Tue, 18 Aug 2015 19:48:15 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRqby-0004mH-Co for help-gnu-emacs@gnu.org; Tue, 18 Aug 2015 19:48:10 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZRqbp-0007BC-2p for help-gnu-emacs@gnu.org; Wed, 19 Aug 2015 01:48:01 +0200 Original-Received: from nl106-137-103.student.uu.se ([130.243.137.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Aug 2015 01:48:01 +0200 Original-Received: from embe8573 by nl106-137-103.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Aug 2015 01:48:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-103.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:+hM6zCkXzYUjQr0HZwqucP97zBg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106696 Archived-At: "Pascal J. Bourguignon" writes: > Yes, you should think about the type of the objects > you pass to functions. Ha! Indeed. What I mean is, why is it at all beneficial to anyone to have this distinction "symbol to denote function" vs. function at play at the level of the programmer? Why sometimes refer "indirectly" to the function by using the symbol denoting it (a very direct way IMHO), and why sometimes refer to the actual function? >> And again, when and why are functions refered to >> not using symbols to designate them? > > When you use themselves to refer to themselves. > > (let ((f (symbol-function 'sin))) (funcall f (/ pi > 3))) --> 0.8660254037844386 > > You are gaining that you can manipulate functions, > have anonymous functions, write high order > functions, etc. I don't know exactly what you mean by "manipulate functions" (code that is modified on the fly, e.g. swapped operands around operators in parse trees?) - but the other stuff is possible to do the old fashioned way. Or are you talking on the level of Lisp itself? If so, I'm not saying anything about that. I'm saying the sharp quote notation what I have seen so far doesn't bring anything to the table save for compiler warnings which you certainly can do without if you otherwise aren't benefited from it and/or simply don't like it. -- underground experts united http://user.it.uu.se/~embe8573