Skip to content

Add if-then-else statement support#213

Open
stringhandler wants to merge 1 commit intoBlockstreamResearch:masterfrom
stringhandler:feature/add-if
Open

Add if-then-else statement support#213
stringhandler wants to merge 1 commit intoBlockstreamResearch:masterfrom
stringhandler:feature/add-if

Conversation

@stringhandler
Copy link

@stringhandler stringhandler commented Feb 9, 2026

Built on #185, so that would need to be merged first.

Addresses #181

@gerau
Copy link
Contributor

gerau commented Feb 9, 2026

Could we make the else expression optional? Maybe we could evaluate a missing else as the unit type (), so this would prevent conflicts when using an if statement in an assignment, for example.

@KyrylR
Copy link
Collaborator

KyrylR commented Feb 10, 2026

#185 is merged, so you can rebase

@stringhandler stringhandler force-pushed the feature/add-if branch 2 times, most recently from 4ec7a0b to bb01ade Compare February 10, 2026 11:25
@stringhandler stringhandler marked this pull request as ready for review February 17, 2026 11:11
@uncomputable
Copy link
Collaborator

This is an if-then-else expression, by the way.

@stringhandler stringhandler changed the title Add if statement support Add if-then-else statement support Feb 17, 2026
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.

4 participants