From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jens C. Jensen Newsgroups: gmane.emacs.help Subject: Re: problems with Emacs 28 Date: Wed, 28 Oct 2020 17:21:16 +0100 Message-ID: <87tuuee2yr.fsf@gmail.com> References: <87lffwhop1.fsf@zoho.eu> <87r1poddpj.fsf@zoho.eu> <87pn58gdnj.fsf@web.de> <3cec75b0-410b-40c7-97c3-d04667c4c04d@default> <877drea4gb.fsf@web.de> <10bfb59d-23a2-4fb8-8bc6-105ffd486edd@default> <87sga0o6k0.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6856"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 28 17:23:22 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1kXoEM-0001fs-LW for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 17:23:22 +0100 Original-Received: from localhost ([::1]:49498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXoEL-0006MX-N7 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 12:23:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXoDL-0005wT-MG for help-gnu-emacs@gnu.org; Wed, 28 Oct 2020 12:22:19 -0400 Original-Received: from mail-wm1-f51.google.com ([209.85.128.51]:50238) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXoDK-0006b2-5K for help-gnu-emacs@gnu.org; Wed, 28 Oct 2020 12:22:19 -0400 Original-Received: by mail-wm1-f51.google.com with SMTP id 13so153177wmf.0 for ; Wed, 28 Oct 2020 09:22:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=iaMXOOGeA0zWhYwrr2tVxnVMSLO0GDTY2yaHMgkSmwY=; b=JIe+ZAw/0nD3V5J03TMfto0XP9e4r8uLqU7ZNvHCbXOKmcMobsB6g4FE57AMuxf6ld Wh1CYKo7fadwwBjpVzWO/M+ruMakt5TpUk+rRPf6WwgRSxuQMW0bpRqHTryCh+X3hVio aXpbge2m6hGkybwWiRLSvqk+R82kp7bMWACFdLamL2Crwz52QToKLk75OaFtEUhqrrOS JRs+n6Vk29aIjK7CgCr+YEpxSW125jk5C0QN6anslR1FSA7TyC/CkBVOdaNNgV8cWhIz AjU2mtknMdjaACDD330QSTP2qmnnQwiwW7THH3jGg7KHyavSEI1wCAEaUTNTdvUYPfyK C4AA== X-Gm-Message-State: AOAM530Fjp2zgIb/9TJW3Kl0TCYbE6pjcReeb5C4zdJhcAnXffJ4Qyq5 VPi5meridaBn5DUy80mpp0s= X-Google-Smtp-Source: ABdhPJw+TPvP2XJb29h22fwvZggjm0RFHlZhpxlQgLQbdFB+4Jw7NMjHUy/TxQA8DR4gpYMDvuS/VA== X-Received: by 2002:a1c:7d54:: with SMTP id y81mr203708wmc.114.1603902136098; Wed, 28 Oct 2020 09:22:16 -0700 (PDT) Original-Received: from localhost ([185.213.154.244]) by smtp.gmail.com with ESMTPSA id h4sm77051wrv.11.2020.10.28.09.22.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 09:22:14 -0700 (PDT) In-Reply-To: <87sga0o6k0.fsf@zoho.eu> Received-SPF: pass client-ip=209.85.128.51; envelope-from=jensecj@gmail.com; helo=mail-wm1-f51.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/28 12:22:16 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -9 X-Spam_score: -1.0 X-Spam_bar: - X-Spam_report: (-1.0 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124784 Archived-At: > From: Emanuel Berg via Users list for the GNU Emacs text editor > Date: Tue, 27 Oct 2020 01:29:03 +0100 > > method - a function belonging to an OOP object > procedure - a function that don't return a value > function - a function that do return a value These are the terms I recall as well. but it seems this terminology is muddy at best, seeing as how you described each one in terms of 'a function that...'. But I'm stumped with what else to call them, `callable' maybe? :-) > destructive - changes the value in the actual argument variables. > It would seem this requires "call by name" or "call by reference", not > "call by value", right? (Unless the value is a memory location, > perhaps...) Yes, or if the context is implicit (e.g. in methods mutating local variables). > side-effect free - the function doesn't do any changes to anything, > this implies non-destructiveness Which is also known as a 'pure' function. > many Haskell programmers, they like to > divide their programs in two parts, one with side-effects, and one > without. This is for different reasons, one advantage would be > modularity, as the side-effect free part can be brought to any other > program without ever screwing anything up. And testing side-effect free code tends to be simple, not having to construct class-hierarchies to test (or worse, debug!) some obscure state is a big boon.