Re: demonic problem descriptions

From: Christophe Turle (cturle_at_nospam.com)
Date: 02/07/05


Date: Mon, 7 Feb 2005 22:35:26 +0100


"Barry Margolin" <barmar@alum.mit.edu> a écrit dans le message de news:
barmar-282AD3.21101506022005@comcast.dca.giganews.com...
> In article <420670c4$0$958$626a14ce@news.free.fr>,
> "Christophe Turle" <cturle@nospam.com> wrote:
>
>> It works with double float. But the point is : why MUST i care about
>> float
>> type EVEN if i'm not concerned with optimization ???
>
> Because you're not the only programmer, and other programmers have
> concerns different from yours. The language has to cater to a wide
> variety of needs. For many of them, floating point is the proper tool,
> and CL provides it, just like most other languages.
>
> If you don't need floating point, don't use it. But it seems really
> conceited of you to expect that the language should be designed to
> facilitate your specific application rather than others.

The problem is that you can always convert rational to float but not the
contrary.

This is the 'objective' ;) reason i think rational should be the default
interpretation, not because this suit best my needs.

-- 
___________________________________________________________
Christophe Turle.
sava preview http://perso.wanadoo.fr/turle/lisp/sava.html
(format nil "~a@~a.~a" 'c.turle 'wanadoo 'fr) 


Relevant Pages

  • Re: why still use C?
    ... > programmer writing portable code, ... underlying floating point processing, ... > program to invoke routines in existing libraries. ... > distinguished at the language level and below. ...
    (comp.lang.c)
  • Re: 0.0 versus 0.0f
    ... a 64-bit floating point value. ... I am not sure what DOUBLE vs. float has to do with what I said. ... so an external floating-point math coprocessor ... And the language does define what happens, but how is the language supposed ...
    (microsoft.public.vc.mfc)
  • Re: demonic problem descriptions
    ... > type EVEN if i'm not concerned with optimization ??? ... Because you're not the only programmer, ... The language has to cater to a wide ... If you don't need floating point, ...
    (comp.lang.lisp)
  • Re: Need help with this float error
    ... > Thanks for the info and references. ... don't have to append F to explicitly tell you want a float. ... They both can have a floating ... Many things in a language can't be done by just trying, ...
    (comp.lang.java.programmer)
  • Re: Ideal computer language from scratch?
    ... Takes 3 float as input, outputs 2 float, nicely formatted in bracktes ... subject and glancing over a volume on the language, ... zipWith takes a function and applies it to 2 lists, ... fibs and. ...
    (alt.lang.asm)