float equality

bearophile bearophileHUGS at lycos.com
Mon Feb 21 14:01:05 PST 2011


so:

> Why not?

A system language has to allow the programmer to do everything the hardware is capable to do, including comparing floats in the usual way. But in general for a well designed language it's better to clearly denote dangerous/unsafe/bad things, and to make the safer routes the first ones you usually try.


> where does it stop?

I don't know, I am here to learn this too. You have languages like Assembly, SPARK, ATS. They are successful in their niche and for their purposes. They are at the (current) opposites for safety, control, freedom, power, performance, etc. In the area that has those tree languages as vertices (and there are many more possible vertices to choose from) there is a lot of design space for good languages.

Bye,
bearophile


More information about the Digitalmars-d mailing list