From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Generic functions: Specializers like `or' or `memq'? Date: Tue, 23 Nov 2021 09:16:36 +0100 Message-ID: <87ilwji8wr.fsf@web.de> References: <87r1bxcg6g.fsf@web.de> <87y265aymg.fsf@posteo.net> <87ilx9hrn6.fsf@web.de> <87a6ilorh0.fsf@ericabrahamsen.net> <878ry0nce8.fsf@web.de> <87v914lorv.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21950"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Stefan Monnier To: Stefan Monnier via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 23 09:17:11 2021 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 1mpQzH-0005X6-6f for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Nov 2021 09:17:11 +0100 Original-Received: from localhost ([::1]:54864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpQzG-0006FY-30 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Nov 2021 03:17:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpQyu-0006FG-LC for help-gnu-emacs@gnu.org; Tue, 23 Nov 2021 03:16:48 -0500 Original-Received: from mout.web.de ([212.227.15.3]:43271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpQyr-0007j5-EP for help-gnu-emacs@gnu.org; Tue, 23 Nov 2021 03:16:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1637655398; bh=zCHszX5WDQLaUvOPMiVv1U+EtTZmbT2O2MTZSKe9JrU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=YU9IeqTDrpb9BtEbSYgvXKN8sN9HzJyqqrZ+SsicNAB69vWaDwPMtFr5Nyf5BxUJN thvn5/boxEZSQ/1+WNo4Lc45lujpynirWVS1hh2JnlfUxZy1ypf5SSi7/5lb2ihlUA ahvSJpIzU6rAKE6wicAM1DiZH7LrO8ldQmaSEpZE= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([92.208.225.87]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MjPUE-1mNDlH3XkQ-00l4op; Tue, 23 Nov 2021 09:16:37 +0100 In-Reply-To: (Stefan Monnier via Users list for the's message of "Sun, 21 Nov 2021 14:43:58 -0500") X-Provags-ID: V03:K1:VjSSFPIRK2zlOLHnC4ic9CdIjBViT4EHAq8qGTBOnhx/ADB0yp3 +5CRjAZiG831ZMTWAFReZxXc9FE6gx2t8GrcjwvxprhSjYQiUAqazx8bKAwQWQZW84hEN0e lsnE/OWcbcqZCRz5MTI3d42FlmWjvAUOIrVEpMBPUjIwjTOuI4RrV/Q9O8j9oO/ig3gSUVI 1EL1KGntyoMmtpD06ZmMg== X-UI-Out-Filterresults: notjunk:1;V03:K0:yx372ZCOFxQ=:OvzUe2pKOKQ/gqs3avhmWI iCRGFO4jBgYQaORcI3wrQhDPT9FmFooyd+C0CKHCN1IbNwf6ajYCEOleytxRXs7NMUk0yv3oa KyPuTCFVW+Dt83HAwtE/gykU4dlWnPBaJdTatYnpCJF+/DgZ7CGe05ihEogLSBNRoMkd7063p ztmvTmuwePVOo7wIoekYl48uBc7FR1R83iRYkX7VPBsp63/4OOywmJIMrLCffmdIikRwplEoV ETSQ+XWwUqNyn2IM4WgP7Wz9+VfdFHDj7mJqGZFLND/S7DGRYw4IxhAtLgyM0q8yn5XNEaO9s OoHRNa0w4KdGWmi0qckG57FMrTWz778sWqI6Z/acNeJzmnMpGm2xvPlH74CfmfzVTGrz15sGr U3PtIa2CzwPfte3187hxXGTZJimXbr1KnSAgE5CR8vqxErFEshsAKMGU9NBfRxA5tNSJAepFW xy0qwuYP9ljcd/LpmiVwkv8qSf7DxI7Jo8pMmPKwy2+fHmkdE8Sjcd288yyDZjqBaFYgylzWf V3hhtvlXqe2Y++nkJL28k5KD6Mq/SDkT7zC10VEPmGyo8zDNhgXvRKakFJSJXPnh4UHHTQZSK ln+rBvp8bItEbYOKF3GlXiC/SvgIXjBLCHAjYwIXi2zv0VnH3KSRRgClZsaMLUA4Q4GK/JHyg b84TeryN3CtLUHel5nrvD5MUWVV0qq5aZZD6NtRZT23E59QoHlrEAMuZgpHBZ7DVVxK4+kA+c 9Lw4nNDFiGw59dnP0Td7xWgJbriKxFU53C+okDkWXHmfqcNjbvVmQT+aYzryloeek+8FdKw1 Received-SPF: pass client-ip=212.227.15.3; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:134674 Archived-At: Stefan Monnier via Users list for the GNU Emacs text editor writes: > Feel free to give us some concrete examples of the kinds of things > you'd like to do, if you want to see what it would take to support > them. Oh - nothing special. It just seems that whenever I try to make use of generic functions the rules for writing specializers seems unnecessarily restrictive. The last time it was implementing that transformation function regexp -> PEG, where the "head" could be one of two or three synonyms. There are workarounds, as always, but too often I think "ok, so this again was not such a good example for using a generic function...". Michael.