Skip to content

cmd/gc: compiler must not accept p-notation floats in regular Go code #9036

Closed
@griesemer

Description

@griesemer
gc accepts the p-notation for floating point numbers:

mantissa "p" exponent

such as 12p-2, etc.

http://play.golang.org/p/xOixorUxUD

The spec doesn't mention them. gccgo and go/types don't support them.

a) we should either disallow them, or
b) we should support them with consistent syntax and document them.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions