-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-CompilersFeature RequestResolution-Won't FixA real bug, but Triage feels that the issue is not impactful enough to spend time on.A real bug, but Triage feels that the issue is not impactful enough to spend time on.Verified
Description
It is a fairly common pattern to see CanGetChar closely followed by a call to the following methods.
PeekChar
GetChar
PeekAheadChar
So I think it could be beneficial to have a Try variant of those methods.
TryPeekChar
TryGetChar
TryPeekChar
It also allow us to the "cache" the character, thus not paying the penalty of multiple call to PeekAheadChar
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-CompilersFeature RequestResolution-Won't FixA real bug, but Triage feels that the issue is not impactful enough to spend time on.A real bug, but Triage feels that the issue is not impactful enough to spend time on.Verified