Skip to content

Do not permit empty binary/hexadecimal constants#130

Merged
ajreynol merged 1 commit intomainfrom
fixEmpLit
Apr 10, 2025
Merged

Do not permit empty binary/hexadecimal constants#130
ajreynol merged 1 commit intomainfrom
fixEmpLit

Conversation

@ajreynol
Copy link
Copy Markdown
Member

@ajreynol ajreynol commented Apr 9, 2025

Initially I wanted to support the syntax #b, but this was never properly added and can be accomplished by (eo::to_bin 0 0).

Currently we give an unintuitive error, this fixes this case.

Copy link
Copy Markdown
Collaborator

@hansjoergschurr hansjoergschurr left a comment

Choose a reason for hiding this comment

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

Yeah, much cleaner

@ajreynol ajreynol merged commit cffb2a8 into main Apr 10, 2025
20 checks passed
@ajreynol ajreynol deleted the fixEmpLit branch June 14, 2025 21:17
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