From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: Always-true predicate? Date: Wed, 17 Feb 2021 18:56:42 +0000 Message-ID: References: <875z2qoqc6.fsf@gnus.org> <87h7ma25so.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6905"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , emacs-devel@gnu.org To: "Basil L. Contovounesios" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 17 19:58:12 2021 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 1lCS1c-0001e8-PE for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 19:58:12 +0100 Original-Received: from localhost ([::1]:51686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCS1b-0006ch-S3 for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 13:58:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCS0q-00069Q-Aw for emacs-devel@gnu.org; Wed, 17 Feb 2021 13:57:25 -0500 Original-Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]:43722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCS0m-0008WG-Ql for emacs-devel@gnu.org; Wed, 17 Feb 2021 13:57:24 -0500 Original-Received: by mail-oi1-x22f.google.com with SMTP id d20so16036693oiw.10 for ; Wed, 17 Feb 2021 10:57:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ml7J0eQfvkPVb+mjpocYKr8fm9H1mF5VolZPUwhG3j8=; b=bH7mZrImY0z2UWwdtAAwCfjqPlu3T0T4yaxgzCvWrfaqg7inTSSC2Sbwigx7xKsl7n OurZ51O84vocphBgabILF23zyN0s0KagCNKP8n7A5Olw0bjF4iwRLkNiDgV54vxUrw8n nO+nby1oyPYSPMH5uX7nJ6YI5pDRsRPEDUCxOepdgqiJYD3M617OsHet2NAepcbbO7bb O/k65bdSVxc8v1TmuYjKbk7MrYhSTA9H5Y69pq6Lv6EGMA2Q0Jn211cnzFNI9AyUDPuT 34n7gUEVCo2Eyml24wTn5FEAm9mUEjWNHGYZdJ8NTC+JpsPHQMImYSk8JaF9nmDLHTz/ 2lGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ml7J0eQfvkPVb+mjpocYKr8fm9H1mF5VolZPUwhG3j8=; b=tnXCaMXkg11IUGa43ZTGK8HCxn86//eadj7UD5e7ZuwslgjsuMAPhMwjTfMSJohCeF E4KRPEBZUKnJldHJtuvZLn7Qa9lo7VR6Ov4nDgRxYix4r9uBJcVLcF1KjKAIwEoLNFzS mgyfzmbu9yw0OjnOltsKjxFSWF5F/GFkG0/SeN/kW8QDLOyUBpX6knsYUP8Gk47SiMoZ YMBhi6gNKRFBuHqcFcU8BjEz2SFZWogv1FbEL85kOm02Dnhzt7hHN1/ueGPrlZktPypW 5jknF64EtFe5c4bvuscg1gde9ki28CYYvhYa08b1Cl423M5XqDkQns5wHE5rWsTMQ0jC upcw== X-Gm-Message-State: AOAM533e6kD351nX1ms//s8U2EKL2GwwMk5PYyVIU2d6pj+/2plK9BE6 aTmL/BrHJMGhKw1A21TZlP83i6lfg2eYC4NmSVU= X-Google-Smtp-Source: ABdhPJxW5XpInEbvey3Nh/hjg0rz3d5/NwU4YLggVzhlwSJg5vg2K0jBO0GDGd+MYCTANHaS8ukSJRlmtD9Zb69OSdc= X-Received: by 2002:a05:6808:8e1:: with SMTP id d1mr187242oic.122.1613588238483; Wed, 17 Feb 2021 10:57:18 -0800 (PST) In-Reply-To: <87h7ma25so.fsf@tcd.ie> Received-SPF: pass client-ip=2607:f8b0:4864:20::22f; envelope-from=pipcet@gmail.com; helo=mail-oi1-x22f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:265048 Archived-At: On Wed, Feb 17, 2021 at 1:18 PM Basil L. Contovounesios wrote: > Lars Ingebrigtsen writes: > > > Would it make sense to add a function that's exactly the opposite of > > `ignore' (for symmetry and convenience)? t > > If so, what would it be called? t > > I've googled to see what other languages do. Rust and NPM has "always", > > and many more Java-inspired frameworks have "truePredicate", but this > > isn't trivial to google for... > > I'm okay with any of 'always', 'true', 'non-nil', 'top', ... How about 't'? I do realize there'd be a problem with hooks, which use 't' as a flag in a list of functions... Of course, there's an unfortunate tradition in computing to consider 1, rather than infinity, the canonical "true" value, so (t nil) might be expected to be nil, but apart from that, I don't think confusion is that likely, at least with a single argument.