Skip to content

Optional chaining#2672

Open
sydow wants to merge 6 commits intomainfrom
let-exprs
Open

Optional chaining#2672
sydow wants to merge 6 commits intomainfrom
let-exprs

Conversation

@sydow
Copy link
Collaborator

@sydow sydow commented Mar 3, 2026

Added a version of optional chaining. Chains may contain

  • attribute selection
  • method calls
  • slicing
  • indexing.

See test/core_lang_auto/optchain*.act for examples.

This PR does not include forced unwrapping or nil coalescing.

@sydow sydow requested review from nordlander and plajjan March 3, 2026 14:26
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.

1 participant