helix icon indicating copy to clipboard operation
helix copied to clipboard

Coercions for Rust structs and Ruby hashes

Open moosingin3space opened this issue 6 years ago • 2 comments

A common pattern in Ruby is to use a hash for temporary structured data. Manually implementing such coercions results in fairly mechanical, repetitive code that would be ideally produced by a proc-macro.

moosingin3space avatar Oct 23 '18 17:10 moosingin3space

I have actually prototyped a simple proc-macro for generating these coercions. It's not in a suitable state for publishing yet, but I'd like to discuss approaches.

moosingin3space avatar Oct 23 '18 18:10 moosingin3space

@moosingin3space are you still interested in this?

wycats avatar Jul 29 '19 18:07 wycats