C++ Logo

std-proposals

Advanced search

Re: Reserve good keywords for floating point types

From: Lyberta <lyberta_at_[hidden]>
Date: Tue, 15 Oct 2019 15:20:00 +0000
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?


Received on 2019-10-15 10:22:42