Skip to content

Protect send: a panic safe feature for Ruby interaction#88

Open
danielpclark wants to merge 7 commits into
d-unsed:masterfrom
danielpclark:protect_send
Open

Protect send: a panic safe feature for Ruby interaction#88
danielpclark wants to merge 7 commits into
d-unsed:masterfrom
danielpclark:protect_send

Conversation

@danielpclark

@danielpclark danielpclark commented Feb 19, 2018

Copy link
Copy Markdown
Contributor

This is forked off of the eval PR. After ruby-sys is updated I'll fix the Cargo.toml file.

Provides

  • Object#protect_send -> Result<AnyObject, AnyObject>
  • Object#protect_public_send -> Result<AnyObject, AnyObject>

Methods can be called with these just like with send except instead of crashing when Ruby raises/throws an exception we can now handle the exception on the Err path.

TODO

  • Wait for ruby-sys update and update Cargo.toml

@danielpclark danielpclark changed the title Protect send Protect send: a panic safe feature for Ruby interaction Feb 19, 2018
@Antti

Antti commented Mar 6, 2018

Copy link
Copy Markdown

@danielpclark Exciting! Do you need a help with this? Are we still waiting for ruby-sys ?

@danielpclark

danielpclark commented Mar 6, 2018

Copy link
Copy Markdown
Contributor Author

Thanks, I don't need help, and yes we're waiting for ruby-sys.

In the mean time I've got all my PRs here available to use from the playground branch of my fork https://github.com/danielpclark/ruru/tree/playground . Since some of my gem releases for FasterPath depend on it I won't be deleting that branch ever.

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.

2 participants