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 12:09:58 -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> <83o9xafl14.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 1489079462 1046 195.159.176.226 (9 Mar 2017 17:11:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2017 17:11:02 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 09 18:10:57 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 1cm1aU-00073J-9L for ged-emacs-devel@m.gmane.org; Thu, 09 Mar 2017 18:10:50 +0100 Original-Received: from localhost ([::1]:35370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm1aV-0004wG-Fj for ged-emacs-devel@m.gmane.org; Thu, 09 Mar 2017 12:10:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm1Zh-0004vH-Jy for emacs-devel@gnu.org; Thu, 09 Mar 2017 12:10:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cm1Zg-0002iB-F4 for emacs-devel@gnu.org; Thu, 09 Mar 2017 12:10:01 -0500 Original-Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]:36352) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cm1Zg-0002i0-9g; Thu, 09 Mar 2017 12:10:00 -0500 Original-Received: by mail-qk0-x234.google.com with SMTP id 1so128689185qkl.3; Thu, 09 Mar 2017 09:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=gZB0i6qrXS0h14K2aXCeKxI5+RDggNNPeeqKMQ4ZWhw=; b=c1F0Rmp3wLS2FV55ZrhvOkyhOqQtDwACxj76DGRaE1VvySML156R8d9toQsH8hX22Z nlMi/99p7nuseEdoDcf4MktLfgqhZKKoJcmsJyQn4GseQbuKP+leAR8OBbERcVAwn1Dp U0sUv87pv0BQm4QN7vK1PUrz7S6/VDFTZYMbwDKTjYeOE0ttN8IMigE+QfJiHR6aVnp8 yVQGH+xqTYzylzBd2ZWO1VR9TdOcwc3ePIxPftfzxKo9k/VegMkulCAjRYNyP/NbfHyj 5BCLnHWGncCja8ejHsTVaUacoyIqlIUd+wudijrHDetgOODu/DjKEvPKz3HXXwEbz92U JqGQ== 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:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=gZB0i6qrXS0h14K2aXCeKxI5+RDggNNPeeqKMQ4ZWhw=; b=Tov7cV+THLlm0nT6cC1kcS7kyjnrUUXFvYpDKKbpQ6oIrC+lX+zBspnoSktUMQ+/nd AD6spMw1LC+MMObwCuA9ICqTgeDRLpjyj0p28nJCSfvnf+2PHl14w07Sf3eUGUXhreXT WlnBSBSpdq932buy4BuDyiwZ6zIlHt4M7XMPVXTx4meBy6oVzDGuBKm/u0ckCsmF24FL Ab4Koa6TpyO256RCPZKbIav+zvBEAhSH4B/coWjh0pBNNET+ucuGMSj5HeKZJp6ckDYv lA5JMqFF8M/s6KLlnNqXGxwaScvou/qMRcCWkad9jRW1CxFkXpeb/1bE2wQAdcXbyn/3 WufQ== X-Gm-Message-State: AMke39m2Omg7sqChDZd65RfiCpYvCEU1i2y+tOu/qR8Z9XhZd4aK82k/mTfcRU808r2M0A== X-Received: by 10.200.62.137 with SMTP id y9mr15115088qtf.182.1489079399455; Thu, 09 Mar 2017 09:09:59 -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 h27sm4620512qtf.24.2017.03.09.09.09.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Mar 2017 09:09:59 -0800 (PST) In-Reply-To: <83o9xafl14.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::234 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:212862 Archived-At: On 2017-03-09 11:54, Eli Zaretskii wrote: >> From: Clément Pit-Claudel >> Date: Thu, 9 Mar 2017 11:25:22 -0500 >> >> 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)))) > > If that's the use case, you will have to use the likes of 'floor' > anyway, because you cannot control well enough what happens in > non-trivial calculations involving floats. Sorry, I don't have an opinion on the larger context discussed here. I was just pointing that it's common in ELisp to expect 'if' not to coerce its arguments. Cheers, Clément.