From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: as for Calc and the math library Date: Mon, 12 Aug 2024 05:24:37 +0300 Message-ID: <867ccmiil6.fsf@gnu.org> References: <87bk20yoya.fsf@dataswamp.org> <86zfpjirkg.fsf@gnu.org> <877ccnj9dp.fsf@localhost> <86bk1zhrf5.fsf@gnu.org> <874j7qkj97.fsf@localhost> <868qx2j3iv.fsf@gnu.org> <871q2ukh4j.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16481"; mail-complaints-to="usenet@ciao.gmane.io" Cc: incal@dataswamp.org, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 12 04:25:16 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sdKkG-00048Y-1W for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Aug 2024 04:25:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdKjq-00082p-FP; Sun, 11 Aug 2024 22:24:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdKjo-00082e-8c for emacs-devel@gnu.org; Sun, 11 Aug 2024 22:24:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdKjj-0000AD-NX; Sun, 11 Aug 2024 22:24:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GqNK/bEPf1qtEYbZiqnT3NtSXc1kI4uRo+/3q0sUrQc=; b=S3EyLbtcVAMt M7shDelfsFrPg3+GyJYPGGdu9Luq57qy7jewWyhnHB5tbO3JfnzOJzV5f/J7pKxn4ZB+4V7u3OCOn OiaNVxWhgxIt6y2W17vPLmj+lfOs9QFXaWeyyUwWzqrsb4vwhn2rZkmAR2e+/RMjxEOxhPeHhvqMT vH2ANFHT5xHad1s8gTn6P4giltVKxKpnkNkZP8udDmdlmo+y5hP65H6FcSf4Jfl7C8nOVD0w+RGsl oA4WxR07yJG2DluK5493jcwAAEIeY6tghaZO0NuD+l7buFlOBk6dWVaCELQh+4G0MihP0A8NeCg+5 thvBDwIz7KzsaVPRghTpmw==; In-Reply-To: <871q2ukh4j.fsf@localhost> (message from Ihor Radchenko on Sun, 11 Aug 2024 19:13:16 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322656 Archived-At: > From: Ihor Radchenko > Cc: incal@dataswamp.org, emacs-devel@gnu.org > Date: Sun, 11 Aug 2024 19:13:16 +0000 > > Eli Zaretskii writes: > > > And if not, then you are talking about enhancing the documentation of > > Calc, which is always welcome, but I fail to see how it is a step > > towards a separate library. > > The idea is to have a description and overview of what the library > does. It will make the design easier later. I think if someone will step forward to do this kind of job, it will be up to them what steps should lead to the goal. > >> M-: (math-add 0.1 '(frac 1 10)) > >> > >> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p 2.0) > >> (math-gcd 2.0 10) > >> (math-make-frac 2.0 10) > >> (calc-add-fractions 0.1 (frac 1 10)) > >> (math-add 0.1 (frac 1 10)) > > > > You again play against the rules: 0.1 is not a valid object for these > > functions. Try > > > > M-: (math-add '(float 1 -1) '(frac 1 10)) > > My point is that the error message could be nicer. For internal functions that don't expect to see objects other than what they were designed to handle? Nice error messages are for the application level, not for this level, IMO.