d-unsed / ruru

Native Ruby extensions written in Rust
MIT License
832 stars 40 forks source link

Steal helix' macro API #36

Closed killercup closed 7 years ago

killercup commented 7 years ago

Would it make sense to adapt helix' macro API?

I've just come across ruru and saw that it uses macros to define types, but they are not quite as concise as the ones in helix (and you need to specify an unmangled function which helix for some reason doesn't). The class definition DSL seems okay but defining classes in a macro that makes the code look like Ruby might go a long way in convincing Ruby programmers to try this Rust thing :)

d-unsed commented 7 years ago

Hey @killercup!

I totally agree that it's good to have a nice API for classes! I believe every rubyist likes good-looking APIs :)

It has not been a priority for some time, but since Ruru is moving towards 1.0, it is time to start working on class definitions. I created #58 for discussions.