Skip to content

rename integer literal type and float literal type #556

Closed

Description

@andrewrk

Right now,

  • @typeName(@typeOf(1)) is "(integer literal)"
  • @typeName(@typeOf(1.0)) is "(float literal)"

I propose that these are renamed to comptime_int and comptime_float respectively. You would be able to refer to the types directly by name.

Also rename

  • @import("builtin").TypeId.FloatLiteral to ComptimeFloat
  • @import("builtin").TypeId.IntLiteral to ComptimeInt
  • @import("builtin").TypeId.UndefinedLiteral to Undefined
  • @import("builtin").TypeId.NullLiteral to Null

Activity

  1. added
    enhancementSolving this issue will likely involve adding new logic or components to the codebase.
    proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.
    on Oct 21, 2017
  2. added this to the 0.2.0 milestone on Oct 21, 2017
  3. added
    acceptedThis proposal is planned.
    breakingImplementing this issue could cause existing code to no longer compile or have different behavior.
    and removed
    enhancementSolving this issue will likely involve adding new logic or components to the codebase.
    on Dec 8, 2017
  4. modified the milestones: 0.2.0, 0.3.0 on Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThis proposal is planned.breakingImplementing this issue could cause existing code to no longer compile or have different behavior.proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions