Skip to content

added std::object::get#166

Merged
raphael-goetz merged 3 commits intomainfrom
#162-std-object-get-function
Apr 17, 2026
Merged

added std::object::get#166
raphael-goetz merged 3 commits intomainfrom
#162-std-object-get-function

Conversation

@raphael-goetz
Copy link
Copy Markdown
Member

Resolves: #162

Copilot AI review requested due to automatic review settings April 17, 2026 15:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new standard runtime function std::object::get to retrieve a field value from a struct/object by key, addressing the missing functionality requested in #162.

Changes:

  • Register std::object::get in the object stdlib function registry.
  • Implement the get handler to return the field value or a runtime error when absent.
  • Add unit tests covering success (string/nested struct), missing-field error, and handler registration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/core/src/runtime/functions/object.rs Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/core/src/runtime/functions/object.rs Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com>
@raphael-goetz raphael-goetz merged commit 0ee93f4 into main Apr 17, 2026
1 check 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.

Implement std::object::get Function

2 participants