You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
andrewrk opened this issue
Oct 21, 2017
· 0 comments
· Fixed by #1057
Labels
acceptedThis proposal is planned.breakingImplementing this issue could cause existing code to no longer compile or have different behavior.proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.
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
The text was updated successfully, but these errors were encountered:
andrewrk
added
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
labels
Oct 21, 2017
andrewrk
added
accepted
This proposal is planned.
breaking
Implementing this issue could cause existing code to no longer compile or have different behavior.
and removed
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
labels
Dec 8, 2017
acceptedThis proposal is planned.breakingImplementing this issue could cause existing code to no longer compile or have different behavior.proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.
Right now,
@typeName(@typeOf(1))
is "(integer literal)"@typeName(@typeOf(1.0))
is "(float literal)"I propose that these are renamed to
comptime_int
andcomptime_float
respectively. You would be able to refer to the types directly by name.Also rename
@import("builtin").TypeId.FloatLiteral
toComptimeFloat
@import("builtin").TypeId.IntLiteral
toComptimeInt
@import("builtin").TypeId.UndefinedLiteral
toUndefined
@import("builtin").TypeId.NullLiteral
toNull
The text was updated successfully, but these errors were encountered: