From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Making 'eq' == 'eql' in bignum branch Date: Wed, 29 Aug 2018 14:56:47 -0400 Message-ID: References: <29f933ac-a6bf-8742-66a7-0a9d6d3e5a88@disroot.org> <76081b5d-8c10-0a37-2c97-d4864c0faa80@cs.ucla.edu> <09153aed-361d-4f82-d9ac-b502314769ae@cs.ucla.edu> <83lg91dqd4.fsf@gnu.org> <0F8F6E54-176C-48EE-9E7C-7CAC424D0D55@raeburn.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1535568941 766 195.159.176.226 (29 Aug 2018 18:55:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 29 Aug 2018 18:55:41 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cc: emacs-devel To: =?UTF-8?Q?Elias_M=c3=a5rtenson?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 29 20:55:37 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fv5cs-0008TQ-Qg for ged-emacs-devel@m.gmane.org; Wed, 29 Aug 2018 20:55:34 +0200 Original-Received: from localhost ([::1]:44564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fv5ez-0007Fo-5C for ged-emacs-devel@m.gmane.org; Wed, 29 Aug 2018 14:57:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fv5e7-0007Eg-6m for emacs-devel@gnu.org; Wed, 29 Aug 2018 14:56:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fv5e6-0006rx-E1 for emacs-devel@gnu.org; Wed, 29 Aug 2018 14:56:51 -0400 Original-Received: from mail-yw1-xc2a.google.com ([2607:f8b0:4864:20::c2a]:42668) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fv5e6-0006rl-8l for emacs-devel@gnu.org; Wed, 29 Aug 2018 14:56:50 -0400 Original-Received: by mail-yw1-xc2a.google.com with SMTP id n207-v6so2409344ywn.9 for ; Wed, 29 Aug 2018 11:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0kdMwU+stlMjhKFefn6bdxzhOoo5p7qZvfIDMervLFY=; b=izmrvdEtWdzPEw7rRy8VXsc/EMIpDNbTRP5Fm9SzLx0mkCd6HkXgXZTVqAkM66M8XH FBs4iMKL4GZluHnHMwCXAtjDzN/aYVCMhPs7RAC5gTOk9yKJ58ovuH8viZhXM6Jy4ykF t0MUi8GfzSp/GvbOuynx3kvIydWu3BzrKXXzaGEzXhziofylBlpc+FoUUh9OoTls8Qq+ 03wi6Lb3yyvtpQA8DFfLOdciAzRK9wq6cyOlWAW7Vh/yVa427Dz5LpqD2du9LUr+PFet +heFJ/afOTh4L1nS78TPdmb3V/hLufCm+9VVf84bAYZ/KA3HwaTAGcoWB2ZgQwxq01DU Fj3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0kdMwU+stlMjhKFefn6bdxzhOoo5p7qZvfIDMervLFY=; b=qlyBRl52LSFxgmF0+fS+g5EGnE4+OnSNgk9wII3vfL5MXgjZiAgB5iLJ/O0xZvN1ki WhIB/6+TExysRLPXXqawfyyFuO47450TrIBMmFjPhYNBBdUUIKi88YwJq0elTXalUBbU Sm9Ozraa+xfeAaTJUxinQ/ebL/XwD8+8EupsS4jzZ2XcgOuELBsoDDHhHIfc4sTHTRjm flGv+LheCcBxctTE4NvolPgbEqRLzMZpYswrKk8howQ7SACFccjUk6l2t0FvWQa7KEP5 zTkk12u1gDNtJt4EtIFnLl9gYOkQ9KQ2XDfYqhBhbXrkYwEpJFvG3y2NZNNxisXbUopm 1fgQ== X-Gm-Message-State: APzg51C3BW9iVZQF2be3VUTCiqaIaOvPQvyUjep3rG84YOz+dDtYqjLd Vk30TSrsatVKw40iXSGurmVovsCh X-Google-Smtp-Source: ANB0VdZ1jGarheBc5asHPxlJco1unLBaaKcujuq5wp5r2pzuLzoNZcGIsq+INJakX/ugdD4ZW1Xnog== X-Received: by 2002:a0d:fd07:: with SMTP id n7-v6mr4016484ywf.223.1535569009506; Wed, 29 Aug 2018 11:56:49 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:1989:dacc:97e:99c6? ([2601:184:4180:66e7:1989:dacc:97e:99c6]) by smtp.gmail.com with ESMTPSA id t124-v6sm4858126ywt.105.2018.08.29.11.56.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Aug 2018 11:56:48 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::c2a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229061 Archived-At: On 2018-08-28 23:22, Elias Mårtenson wrote: > On Wed, 29 Aug 2018 at 02:19, Clément Pit-Claudel > wrote: >   > > FWIW, I'm not a fan of using either (min) or (max) to represent minus infinity; it looks a bit odd.  Many other languages have an infinity constant already, so that pattern is well established; making (max) an alias for either of the infinities is prone to introducing confusion. > > > For anyone curious, the way to do it in APL is ⌈/⍬ and ⌊/⍬, which literally means take the max and min values of an empty list, so it's not completely unheard of. Let me amend what I wrote above. I'm not excited about (max) becoming the common spelling for negative infinity, but I'm fine with changing max to accept zero arguments and return -infinity in that case (and, indeed, that's the only value that makes sense to me). I'd simply prefer to have a more explicit spelling for both infinities, and if 1.0e+INF if too hard to remember, a new read syntax or a new defconst would have my preference over (max) and (min). Clément.