Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Scheme booleans #9522

Merged

Conversation

Kmeakin
Copy link
Contributor

@Kmeakin Kmeakin commented Oct 30, 2024

The #t and #f syntax is misleading: they are actually expressions, not booleans, so #t represents the integer 1 but not the boolean true. They have been replaced by the named constants $true and $false, and not used anywhere except tests, so they can be removed without breaking any lowering/optimization code.

@Kmeakin Kmeakin requested a review from a team as a code owner October 30, 2024 14:55
@Kmeakin Kmeakin requested review from abrown and removed request for a team October 30, 2024 14:55
@Kmeakin Kmeakin changed the title emove scheme booleans Remove Scheme booleans Oct 30, 2024
@Kmeakin Kmeakin force-pushed the km/isle/remove-scheme-booleans branch from 69364fd to f3933a0 Compare October 30, 2024 14:56
Copy link
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

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

LGTM for the change in the title; would you mind rebasing out the langref stuff from the other PR? Once that's separated, I'm happy to land this!

@Kmeakin Kmeakin force-pushed the km/isle/remove-scheme-booleans branch from 0e0430f to f3933a0 Compare October 30, 2024 15:28
@Kmeakin
Copy link
Contributor Author

Kmeakin commented Oct 30, 2024

would you mind rebasing out the langref stuff from the other PR?

Thanks, I must have messed up the rebase somehow. GitHub PRs are more confusing compared to Gerrit IMO

@Kmeakin Kmeakin force-pushed the km/isle/remove-scheme-booleans branch 2 times, most recently from 62396a6 to 9354420 Compare October 30, 2024 15:36
The `#t` and `#f` syntax is misleading: they are actually integer
expressions, not booleans, so `#t` represents the integer `1` but *not*
the boolean `true`. They have been replaced by the named constants
`$true` and `$false`, and not used anywhere except tests, so they can be
removed without breaking any lowering/optimization code.

Copyright (c) 2024, Arm Limited.

Signed-off-by: Karl Meakin <[email protected]>
@Kmeakin Kmeakin force-pushed the km/isle/remove-scheme-booleans branch from 9354420 to 96881d6 Compare October 30, 2024 15:38
@cfallin cfallin added this pull request to the merge queue Oct 30, 2024
Merged via the queue into bytecodealliance:main with commit a2025f4 Oct 30, 2024
39 checks passed
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