From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: Re: thunk.el: Document that thunk-force == funcall? Date: Wed, 18 Nov 2020 04:04:23 -0500 Message-ID: References: <871rgs3tdx.fsf@web.de> <874klnnc6t.fsf@logand.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28843"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Tomas Hlavaty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 18 10:15:19 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfJYc-0007MW-UH for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Nov 2020 10:15:18 +0100 Original-Received: from localhost ([::1]:38982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfJYb-0002rQ-Mz for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Nov 2020 04:15:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfJO5-0006De-Dj for emacs-devel@gnu.org; Wed, 18 Nov 2020 04:04:25 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50407) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfJO3-0001Dk-Gi; Wed, 18 Nov 2020 04:04:23 -0500 Original-Received: from ams by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kfJO3-00072B-4k; Wed, 18 Nov 2020 04:04:23 -0500 In-Reply-To: <874klnnc6t.fsf@logand.com> (message from Tomas Hlavaty on Tue, 17 Nov 2020 18:08:26 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259336 Archived-At: > thunks are functions. thunks take no arguments (at least the definition i know) > The background: because thunks are functions, one is allowed (and it is > useful) to directly pass them to higher order functions e.g. as a test > predicate, a test predicate usually takes at least one argument And returns a value -- something which thunks also do not. thus a thunk cannot be used as a test predicate