From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Three questions about pcase for Stefan Date: Sat, 23 Jan 2016 17:22:06 -0500 Message-ID: References: <87r3h8zfd4.fsf@web.de> <56A3EF3E.3020502@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453587755 28135 80.91.229.3 (23 Jan 2016 22:22:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jan 2016 22:22:35 +0000 (UTC) Cc: Michael Heerdegen , Emacs Development To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 23 23:22:26 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aN6Ze-0001Oc-Em for ged-emacs-devel@m.gmane.org; Sat, 23 Jan 2016 23:22:26 +0100 Original-Received: from localhost ([::1]:58707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN6Zd-0008KX-Ub for ged-emacs-devel@m.gmane.org; Sat, 23 Jan 2016 17:22:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN6ZR-0008Hs-Fy for emacs-devel@gnu.org; Sat, 23 Jan 2016 17:22:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aN6ZM-0003Dm-GV for emacs-devel@gnu.org; Sat, 23 Jan 2016 17:22:13 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:58898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN6ZM-0003Dc-CJ for emacs-devel@gnu.org; Sat, 23 Jan 2016 17:22:08 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AyFgA731xV/zh9oWxcDoMChAKFVbtAh0sEAgKBPDsSAQEBAQEBAYEKQQWDXQEBAwFWFQ4QCzQSFBgNJIg3CM8jAQEBAQYBAQEBHos6hQUHhC0FjDCnD4FFI4M6XCCCeAEBAQ X-IPAS-Result: A0AyFgA731xV/zh9oWxcDoMChAKFVbtAh0sEAgKBPDsSAQEBAQEBAYEKQQWDXQEBAwFWFQ4QCzQSFBgNJIg3CM8jAQEBAQYBAQEBHos6hQUHhC0FjDCnD4FFI4M6XCCCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="190828263" Original-Received: from 108-161-125-56.dsl.teksavvy.com (HELO ceviche.home) ([108.161.125.56]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Jan 2016 17:22:08 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id C74CC6632F; Sat, 23 Jan 2016 17:22:06 -0500 (EST) In-Reply-To: <56A3EF3E.3020502@cs.ucla.edu> (Paul Eggert's message of "Sat, 23 Jan 2016 13:23:10 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198667 Archived-At: >> Testing equality of floating point numbers is very rarely correct. > Although it's rarely correct in programs written by newbies, it's almost > always correct in floating-point programs written by experts. 1- we can assume that an expert would only write correct code, so yes they'd only do it when it's correct, but since it's rarely correct, they'd only use it very rarely. 2- instead of "1.0" the experts can write "'1.0". Stefan