Skip to content

[feat] support RubyString#split for Java (exts)#6562

Merged
kares merged 2 commits intojruby:masterfrom
kares:java-string-split
Mar 3, 2021
Merged

[feat] support RubyString#split for Java (exts)#6562
kares merged 2 commits intojruby:masterfrom
kares:java-string-split

Conversation

@kares
Copy link
Member

@kares kares commented Feb 15, 2021

currently, there's no easy way to do a RubyString#split from a Java extension (due split writing a back-ref for the frame).
the idea here is to provide a "strongly" typed API that Java consumers could leverage wout shooting themselves in the 🦶

@headius
Copy link
Member

headius commented Feb 17, 2021

Big +1 for making the backref stuff more explicit. You have probably seen some Regexp functions where you can pass in a holder object or let it do the implicit operation, but this is a nice way to make it more typed.

@kares kares added this to the JRuby 9.3.0.0 milestone Feb 17, 2021
@kares kares merged commit 6199049 into jruby:master Mar 3, 2021
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