C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] Reserve good keywords for floating point types
From: Lyberta (lyberta_at_[hidden])
Date: 2019-10-15 10:20:00


Tony V E:
> Citation needed.
>

From the newer draft:

# Prior art

## Rust

Rust has `f32` and `f64` types that are guaranteed to be `binary32` and
`binary64` respectively.

## Go

Go has `float32` and `float64` types that are guaranteed to be
`binary32` and `binary64` respectively.

## Swift

Swift has `Float` and `Double` types that are guaranteed to be
`binary32` and `binary64` respectively.

## Java

Java has `float` and `double` types that are guaranteed to be `binary32`
and `binary64` respectively.

## C#

C# has `float` and `double` types that are guaranteed to be `binary32`
and `binary64` respectively.

Why would other languages guarantee layout if layout doesn't matter much?




STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups