Path: csiph.com!news.mixmin.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: x>y Date: Tue, 1 May 2018 13:32:25 +0200 Organization: solani.org Lines: 18 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1525174343 23868 eJwNzMkRACEIBMCUuGZcwgGV/ENY/10Np3KvIBgYjIiu02lMiI8yPs/wtKkj7OAp7M5KK11YC3U5PU/e3nH8LWLQ2mx+ZbGherMQ5imu2j9WmR0g (1 May 2018 11:32:23 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 1 May 2018 11:32:23 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 X-NNTP-Posting-Host: eJwFwQkBwDAIA0BLEMozOTQF/xJ25xYazBMex9f32pmMFG0TOqYWDrLIg4l5TYkQGjkf7pWnU7C9LVj2LUhVpTb4teoajiX3rUuomeEHqwQeVw== Content-Language: de-DE In-Reply-To: Cancel-Lock: sha1:0HNziaL4yz7pK2fo6AQikEeQ/IE= X-User-ID: eJwFwQkBACAIA8BKYzxiHATtH8E715DoZeFh/vzNBWYRuusKlCe3nNbyQZHZjO4DWk6oCPoDFP8Qow== Xref: csiph.com comp.lang.javascript:34956 On 01.05.2018 at 13:13, Stefan Ram wrote: > After the introduction of »<«, can we define > > x>y as y x<=y as !(x>y), and > x>=y as !(x > or are there any exceptions? > > (Assuming that the evaluation of »x« and »y« does not have > side-effects.) NaN <= NaN // => false NaN > NaN // => false -- Christoph M. Becker