Skip to content

Conversation

rtfeldman
Copy link
Contributor

With snapshot changes, the diff on #8207 is too gigantic to be reviewable. This branch is just to have a smaller diff to work with!

@rtfeldman rtfeldman force-pushed the new-changes-diff branch 4 times, most recently from e1b66bd to 33a6d5d Compare September 8, 2025 03:32
@rtfeldman rtfeldman force-pushed the new-changes-diff branch 4 times, most recently from 2be7253 to 76b0de4 Compare September 9, 2025 00:41
},
'0'...'9' => return try self.tokenizeNumber(self.gpa, start),
'/' => return chompOneOfTwo(&self.pos, src, '/', .OpSlash, .OpDoubleSlash),
'-' => return chompOneOfTwo(&self.pos, src, '>', .OpBinaryMinus, .OpThinArrow), // TODO handle unary minus here by checking for preceding whitespace
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was curious about your rework and came across this comment. Just my two cents: If a-b should be the same as a - b, then whitespace is not the right way to distinguish between binary and unary minus.

This is probably not that relevant in the grand scheme of this rework. Just a small thing I noticed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants