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: [Emacs-diffs] master 37940b3: min and max now return one of their arguments Date: Thu, 9 Mar 2017 11:25:22 -0500 Message-ID: References: <20170307012700.3354.30219@vcs0.savannah.gnu.org> <20170307012701.1C05D23F1F@vcs0.savannah.gnu.org> <83efy7hih9.fsf@gnu.org> <3530106c-241e-c7e5-f01a-7462b98db737@cs.ucla.edu> <83shmmfn21.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1489076775 1560 195.159.176.226 (9 Mar 2017 16:26:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2017 16:26:15 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 09 17:26:09 2017 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 1cm0t2-0007HY-TL for ged-emacs-devel@m.gmane.org; Thu, 09 Mar 2017 17:25:57 +0100 Original-Received: from localhost ([::1]:35052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm0t8-0007Ab-Vr for ged-emacs-devel@m.gmane.org; Thu, 09 Mar 2017 11:26:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm0sZ-0007AV-74 for emacs-devel@gnu.org; Thu, 09 Mar 2017 11:25:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cm0sY-00028C-5C for emacs-devel@gnu.org; Thu, 09 Mar 2017 11:25:27 -0500 Original-Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]:34259) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cm0sY-00027g-16 for emacs-devel@gnu.org; Thu, 09 Mar 2017 11:25:26 -0500 Original-Received: by mail-qk0-x235.google.com with SMTP id p64so127147285qke.1 for ; Thu, 09 Mar 2017 08:25:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=TCZLE9hpVRR4WuQISqbfDAl8EjJ+nWP01s9jJeN22HQ=; b=sL0nUY9LyvH0RsSqruK4NHGlKw8Owx5csPwX5wpYwot8Ah7KoaMXVxVcyUp3W40Cgv Y7P12rT0KppX9tkUD6jxaoj+eMgAhrFojGWZphIiRzJoHj4WxnTnIkpKwlJXsEDkD5ZI +NrVmWWsT1jepu5RlRoR+dODSgENdPMvYwEiKBjfViXITEM0xcCrifxFXnDGz5BBSBMH JGm413ntXOmi52GvOJqJbQRuOUecd6Y8++CNvps5EdHLPukc7jmEaEDqjnQ4IoxjIeLP 5pHMrTnSODRqRFoCo1pFNO3k3Xy53EgZIPDbhMTy6YPX5DsoEvr/HACc/w1hLhpSVQtS Sg4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=TCZLE9hpVRR4WuQISqbfDAl8EjJ+nWP01s9jJeN22HQ=; b=FCqEchVw64qIf6Eeacg2Gg/4GvnegeSoe06hsQLjy3ibYpqwHf0aTAD4mUPWWQMLdm rQKF5forTQ5Y2Dceu3Ps8Es+2aiOz8ujodVxWTffr9XTDvVH4YeEpvNosBQAGjkFU+Pb Pa4bzQ2+49i2WRTT+ETYWkuVeqwPkDxTWJpOX9XG1cAIpZYPUTp8zHpm1EOIhtlO8HyQ RT6nPD/Qee6BoyZyulqiziXeQAT+UKQDNxzFTpt57u8mQWsKIcAf6O6heNfqb3GjCCtz czqjon80+OHmBjq90w+aABdD0HwBT/CiW9voG4xNf38DOxIeC1ElwZwIRFcwqnMW20QV PfIg== X-Gm-Message-State: AMke39laj9frxjDWeQMU8lUpbf8N5bnBIhfIFQw66qE/s/WJZPKWRF9uwsyOHeFAO7EEgA== X-Received: by 10.200.48.209 with SMTP id w17mr16298491qta.179.1489076723769; Thu, 09 Mar 2017 08:25:23 -0800 (PST) Original-Received: from ?IPv6:2001:470:8b2d:1a:9bab:c177:73b2:20a9? ([2001:470:8b2d:1a:9bab:c177:73b2:20a9]) by smtp.gmail.com with ESMTPSA id c19sm4537177qtc.29.2017.03.09.08.25.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Mar 2017 08:25:23 -0800 (PST) In-Reply-To: <83shmmfn21.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::235 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:212860 Archived-At: On 2017-03-09 11:10, Eli Zaretskii wrote: > >> More generally, although people expect statically typed languages to >> convert alternatives to float (e.g., C programmers expect (1.5 > 2 ? 1.5 >> : 2) to return 2.0 not 2), dynamically typed languages are different: >> Lisp programmers expect (if (> 1.5 2) 1.5 2) to return 2 not 2.0. > > I'm not sure this is so, and anyway getting 2.0 should not matter in > Emacs Lisp. I think it does matter sometimes, as some bits of Emacs explicitly distinguish between floats and ints (for example I might write `(face (:height ,(if use-absolute-size 120 1.2)))) Clément.