[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why is there no REAL number data type?
- To: slug@WARBUCKS.AI.SRI.COM
- Subject: Why is there no REAL number data type?
- From: "RDP%ALAN.kahuna.decnet.lockheed.com %ALAN.kahuna.DECNET.LOCKHEED.COM"@WARBUCKS.AI.SRI.COM
- Date: Mon, 29 Jan 90 15:18:15 EST
Received: from THOMAS.kahuna.decnet.lockheed.com by ALAN.kahuna.decnet.lockheed.com via CHAOS with CHAOS-MAIL id 19020; 29 Jan 90 11:58:06 PST
Date: Mon, 29 Jan 90 11:57 PST
From: Robert D. Pfeiffer <RDP@ALAN.kahuna.decnet.lockheed.com>
Subject: Why is there no REAL number data type?
(This question has occurred to me a few times over the last couple of
years so I thought that I'd finally ask it.)
Can anyone tell me why the type REAL isn't defined in Common Lisp (nor
SCL)? It would seem like a good and useful type to have. It should
be a direct supertype of RATIONAL and FLOAT and a direct subtype of
NUMBER. It would provide a convenient way to specify a noncomplex number
(RATIONAL, for example, takes an argument of this type).
Comments, anyone? (Particularly you CL language theorists.)