Skip to content

Conversation

@nedanwr
Copy link
Owner

@nedanwr nedanwr commented Jan 28, 2026

Summary

Add support for functions returning multiple values and unpacking assignments (return a, b and set x, y to call func).

Changes

  • Add VAL_TUPLE type to runtime for immutable fixed-size value containers
  • Add AST_TUPLE and AST_UNPACK_ASSIGN parser nodes for tuple expressions and unpacking
  • Add OP_TUPLE_NEW and OP_UNPACK opcodes for tuple creation and unpacking in VM
  • Update LSP with symbol creation, reference finding, and diagnostics for tuples and unpacking
  • Add integration tests for multiple return values, unpacking, and variable swapping

Testing

  • All existing tests pass
  • New tests added (if applicable)
  • Examples updated (if applicable)
  • Memory leak checks pass (if applicable)

Documentation

  • Examples updated (if applicable)
  • README/docs updated (if applicable)

Breaking Changes

None

@nedanwr nedanwr self-assigned this Jan 28, 2026
@vercel
Copy link

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
kronos Ready Ready Preview, Comment Jan 28, 2026 9:25am

@coderabbitai
Copy link

coderabbitai bot commented Jan 28, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nedanwr nedanwr merged commit e8778ca into develop Jan 28, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants