emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master 37940b3: min and max now return one of their ar


From: Clément Pit-Claudel
Subject: Re: [Emacs-diffs] master 37940b3: min and max now return one of their arguments
Date: Thu, 9 Mar 2017 12:09:58 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

On 2017-03-09 11:54, Eli Zaretskii wrote:
>> From: Clément Pit-Claudel <address@hidden>
>> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]