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

If expressions improvements #1070

Merged
merged 1 commit into from
Feb 19, 2024
Merged

If expressions improvements #1070

merged 1 commit into from
Feb 19, 2024

Conversation

degory
Copy link
Owner

@degory degory commented Feb 19, 2024

Enhancements:

  • Infer if expression type from context, where initializing an explicitly typed variable or being returned from a function
  • Fewer redundant error messages when if statements and expressions are incomplete
  • Support throw statement as a value in an if expression

Bugs fixed:

  • No error reported when an if expression had no else branch
  • Nested if expressions generated incorrect IL

Technical:

  • Report elapsed time in bootstrap script
  • Add a very simple mechanism for representing a block of IL instructions as an IL value
  • Improve indentation of control flow IL assembly and add comments

See #1060

Enhancements:
- Infer if expression type from context, where initializing an explicitly typed variable or being returned from a function
- Fewer redundant error messages when if statements and expressions are incomplete
- Support `throw` statement as a value in an if expression

Bugs fixed:
- No error reported when an if expression had no else branch
- Nested if expressions generated incorrect IL

Technical:
- Report elapsed time in bootstrap script
- Add a very simple mechanism for representing a block of IL instructions as an IL value
- Improve indentation of control flow IL assembly and add comments
@degory degory merged commit be3aef5 into main Feb 19, 2024
12 checks passed
@degory degory deleted the degory/expression-if-fixes-1 branch February 19, 2024 11:15
@degory degory linked an issue Feb 19, 2024 that may be closed by this pull request
15 tasks
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.

Expression-oriented programming
1 participant