From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : Is there any difference between `equal' and `string=' for strings? Date: Thu, 19 Aug 2021 15:35:08 +0000 Message-ID: References: <875yw2vxqh.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34956"; mail-complaints-to="usenet@ciao.gmane.io" To: Marcin Borkowski , Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 19 17:36:59 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 1mGk6F-0008ru-8b for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Aug 2021 17:36:59 +0200 Original-Received: from localhost ([::1]:52242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGk6D-0006aq-Fq for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Aug 2021 11:36:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGk4Z-00069l-11 for help-gnu-emacs@gnu.org; Thu, 19 Aug 2021 11:35:15 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:24480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGk4X-0003it-7X for help-gnu-emacs@gnu.org; Thu, 19 Aug 2021 11:35:14 -0400 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17JFQ3Q8001771; Thu, 19 Aug 2021 15:35:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=ZYd5LCK1upThF+f1AqdaZDxFoPnwj4VVeMbDNkKWZ3U=; b=qdBPpfDgx5IXjTwvI1kbhpGSSCUwFzEujacPlHjF6iUw+vtnkrHBRkKWW/jTd2L1LxwB T2xo7dq+ygSG8jJxfggUDdg/0iPEFmBsfNPlpjII0UBv1e0NOFqmwJasZ55zHJ1IzZ8u zABxtdH5TSCMSa8vEAhyU1tF9t9VDWt0voi6eYDYFRj7rRsfPiGGJy1jqKmrTFcK/Gfw jBYHUbxvInzXZQ4sda88oe0yGbZyNHEvOIveVaXO4+lju09dpdO0zSsilr2hTMgBoKY9 PXvNwa/v19Ck/xqFdsog3MsaojXSbAlRuHtKQF/B3HyldTeE4DuoPEtVF/nCSMy/10Lh Gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=ZYd5LCK1upThF+f1AqdaZDxFoPnwj4VVeMbDNkKWZ3U=; b=QjVwVr2jWyaP85y2/2XCfQ6GiSo2cnf/GPQKscR0L87Bzt1k3+jBiT+PMwDB3ey8yvYv hGwrKRH95nFrKBO2PMgd6GpWo413k75qUWXqQDoely5hvk8y6M8NAdHloM4JYz5Z/3gL EOQqbV/qtulc+Sx8g8zJ0j4ai1rxE7yBS1tS/D/S8WOZ3BFWcZxOvVqkw17CL/qWP54T kUUVvNd5jUt5EdS1aQvz/eW/FuHpWn2KCPMUTcG+rliViypc7edj4qPUMumF9e+csqnU NpD1GVJNEKEcWr0D3swiWRg+KijujW1mnBE/PZitM0rUZXQicBXyr35t03FW8JfPaXIV uQ== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3ahs40g6g0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Aug 2021 15:35:11 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 17JFZ1RB188067; Thu, 19 Aug 2021 15:35:10 GMT Original-Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2177.outbound.protection.outlook.com [104.47.59.177]) by aserp3030.oracle.com with ESMTP id 3ae3vkqe1x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Aug 2021 15:35:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DW4BnbS3rXoMvwLeqU8aHp7lS3FNZ8+7MKImSQpY4MomdLvY+jQbs69xDWpcRM2vRWWQu5d/hnHoeFx0XABbU4VbQhMMjZ2l+87fRefPQEwsGgmd7RQAMgrFlt834ctD03JK6pwkLf6vvmOSFQrKL1JRWU6kplbDCj8NVeRQxpg+cD45QNF5CKUkxPZChE4ZAoTLl6CHOeFmzIsb6Z8v4blwqPl9LZEt3EYvQfAlHXlpyq0cTmlJ5OJYMl6vdk3RfV3gEhIwyPfGlxYR6bOK7wJjX1fNaHu5HzkFJKMEgO9y0Y5VaG/2G93EiPPLduIuUf/BXIuNLGzxCvazmx4C5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZYd5LCK1upThF+f1AqdaZDxFoPnwj4VVeMbDNkKWZ3U=; b=oWkA0XBwtDlb3Eu1z8TOqMoAgSE1l5htoVjdEsgMYNqwVeBZj2GYdCCLM/0gzlaYXaR+l3K2/MEvRQ0vIozBalne0sdcfjb9Pgm6ivvCh05hEpciZrGp7mkQxP8ayAZ0WMTvYeB726ugTi0vTVo9nH+de4CQ3LtEzrkNk0Ibca9aXsWFaDJDJHr723ey/+wmf1DCHo8LIZSPpIkTCGEEPAM5qsGbOx/70i41WDNThxaWG1c8kzTe7d8oIJYsGSY2wqJYaaOLAZuZLimyPT3ggryOIzZe/urG34qvwjq21r/0D3VRPWkoNW81O2Wky3CRo80DhrJ2WVveVLXSTJYEPw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZYd5LCK1upThF+f1AqdaZDxFoPnwj4VVeMbDNkKWZ3U=; b=akiM7zpYtxyv6+RUCbe1qBA1hLe81ZOt5NSB3LMqgCLKi2o62lDSg+A9XLDXH3W+p7+IM80xkqUeHqvrvO0iTbPTK/bsB12zWuaJfMnTcJl1iWuM9ql1YRivKIDNbNlsrOOuoLCAUQ3OML6KPXhQnwOSt697vk58dzp1Xi5suRI= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB4088.namprd10.prod.outlook.com (2603:10b6:a03:11b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.15; Thu, 19 Aug 2021 15:35:08 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a59e:fa26:ffe4:615b]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a59e:fa26:ffe4:615b%3]) with mapi id 15.20.4415.025; Thu, 19 Aug 2021 15:35:08 +0000 Thread-Topic: [External] : Is there any difference between `equal' and `string=' for strings? Thread-Index: AQHXlLajFbeF5NwBU0Gb/95yy1u8+qt69RlQ In-Reply-To: <875yw2vxqh.fsf@mbork.pl> Accept-Language: en-US Content-Language: en-US authentication-results: mbork.pl; dkim=none (message not signed) header.d=none;mbork.pl; dmarc=none action=none header.from=oracle.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bec536fa-fb63-4c8e-d28f-08d96326ecdf x-ms-traffictypediagnostic: BYAPR10MB4088: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WS5KVNVizWZp3k/+QFH6NoKOxknrqwCD0e+J2GgaYF/XH6YEGEifRk4UsBMq6aO+XU+l71DkDHaXuGlvGPySPm8rm4nSpWFYo1JYO3pd9IpbEIDA12DuvyzrEwyJr40NfhWRv8CWcG5i3F9iMcT0ay4/bx35i4CsT9fxh/BRkulJwHowCPxiVvmOALPCPq0XEy13IxMroqO6MX9wOMwNN2cu/uf6u/9BIH/oJDItIFwyQXORuNvhLEeX+CstOwFzlWJ+zdMqgOFknhfZnB744o8u1zX7eZP4gmIE/ZyFprwI7LEz8JUOhQJFRHAXhSx+HezDrM6wg9WJCtJliRnk97dlhQ/AZnVGUMgK6ABtdzFfF2Slg+QmwgOMNy7GmvxSSRPpg9aI1RshgGMfKj5DCfvHpcnoND2xJ7YNyQYo3uWZpVRAoX0C3gDDemQH8shfIXbEioliw6lKQ2xyceEKFYqTAyqOtVSIl4uVIPWvWcJb6Kp3/XZ85vY8mghVIISvHia9+/+XNidm8xx42cgP7u5jOoGCpnLosQt98UUnPjye6PZDvxmTnh1TmGP4l7I7typbNkUnDbcKMXGbUmAMNOYsa93j9MURMET2q+aYHUtJeRcHPzm6nfWOllUmLkmKaIgJiNdLSyfLlq+JNsgf/oH2pSg+r7d4Eb5geMRYnKdskVO4tGz99+WSP2x4Hpg64/O4XyZMy/akIh+5KJatPsqG/qMkOJXnsXHNoJud98Y= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(346002)(366004)(39860400002)(396003)(136003)(26005)(2906002)(7696005)(33656002)(6506007)(8676002)(478600001)(316002)(86362001)(8936002)(38070700005)(122000001)(5660300002)(9686003)(55016002)(66946007)(66446008)(66476007)(4744005)(38100700002)(186003)(52536014)(44832011)(71200400001)(110136005)(64756008)(76116006)(66556008)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?gRXA4pGF9enJ60cN7dCTkQYRk2bhZaDu01poLUCbnZm7a1+vm5vEoB1h0Vch?= =?us-ascii?Q?QTY2JYCI7WOOn1RnyQw1ZIeC6hAPcaRWyiyaHbBLiJsQznaV6TlUzOdX6+NR?= =?us-ascii?Q?H4dScClSkjO0mGcSFR5wT7VFXGLc9QcL3trxOpCcrSLhkM1dpZoVWN+nEgYA?= =?us-ascii?Q?ISKEbabLGOA2VurOpW269xYtD/r1i9PhJZy4NvM/EWJ9FRR4xZJlAOJLUaMt?= =?us-ascii?Q?jHTq3SOCEC1YODVCJ0xzNDNWS3a3ASPxuuoEFtfSSbXfG8YzsiEPYi28Fo1K?= =?us-ascii?Q?YCtHZv+ggwkQgv59j5SdKLUlXa8poFKNmzHU/O9BsuU/4+V7mCrcHV94KjCv?= =?us-ascii?Q?LoxilAqBmzYRBbgUJ4TtcJq9LtX4lnf51SefVQQb8VWb/gtQjtXCCKXQexEV?= =?us-ascii?Q?M24CTn1Na9yv+Bjgf4NdevEBEuD+sMT5/UQxK29R6/3nnfvmkoPyyXXDwbY1?= =?us-ascii?Q?EdZGM0WAu23EdzcPh9MOEVuPle4ZyAh+809obzyKkTnEcO7cjuKVBWKjbPNR?= =?us-ascii?Q?zWRXh3ZrNyvfWvDLPVNNwomNXVZAvnR0aaQcQEujhVZmVTDIHGLxz9gJNsn4?= =?us-ascii?Q?wHKqLiDPsEUhMdIG1ckZxMz+MCBvHKVZlkBFInxtrrB3wHJ074u3S+MWSAUD?= =?us-ascii?Q?UN x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bec536fa-fb63-4c8e-d28f-08d96326ecdf X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2021 15:35:08.2678 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OJS9qrJ8Rms/rvEZVDPEy0iiUoFTo1h7YSWcnJsf+DLVUDGpzJJCT56b3tkllC5EozZIIKtFGm1vxOtdBpV4mw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB4088 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10081 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxscore=0 malwarescore=0 mlxlogscore=522 spamscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108190091 X-Proofpoint-GUID: FO-vFjkRhzl2TQUb11vj3BV735Z5qp8B X-Proofpoint-ORIG-GUID: FO-vFjkRhzl2TQUb11vj3BV735Z5qp8B Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_BL=0.001, RCVD_IN_MSPIKE_L3=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.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:132616 Archived-At: > Well, of course a string and a symbol can never be `equal', but they can > be `string=3D'. But what if both arguments are strings? The docstrings > seem to imply that you can use `equal' and `string=3D' interchangeably an= d > they will always give the exact same result. Is that correct? If both args are strings those predicates always give the same result. `equal' is not costly for simple things that can also be compared with, say `eq' or `string=3D'. It's costly for things like complex list structure. But when you need `equal' you need `equal'. ;-)