Subject: Re: bug#19208: replace-match unhelpful error message

From: Noam Postavsky <[email-masked]>
Date: Sun, 04 Aug 2019 10:12:06 -0400

Andreas Schwab <[email-masked]> writes:

> On Aug 03 2019, Noam Postavsky <[email-masked]> wrote:
>
>> People might say things like "your height must be between 120 and 200 cm
>> to ride this roller coaster"
>
> This still puts "height" (the variable) first.

Lars Ingebrigtsen <[email-masked]> writes:
>
> And they don't say "120 cm must be less than your height, which must also
> be less than 200 cm".  :-)

Right, but unless we want to use a macro like

    IN_RANGE_P (height, 120, 200)

I think ((120 < height) && (height < 200)) is the closest we can get to
the natural phrasing.  In Elisp we can do (< 120 height 200) which is
nicer, but we're still stuck with `and' for semi-closed intervals.