guerrilla icon indicating copy to clipboard operation
guerrilla copied to clipboard

One patch! macro to rule them all

Open kotauskas opened this issue 5 years ago • 1 comments

Currently there's the patch* functions which accept from 0 to 9 arguments, which is a limitation when it comes to a larger amount, which is surely non-idiomatic and not practical but can sometimes happen in FFI scenarios. Aside of that, the numbering just looks ugly. A patch! macro (likely implemented as a tiny separate crate decoupled from the patch guard and then reexported in the main crate because that's how proc-macro crates work) is a much cleaner way, I think.

kotauskas avatar Apr 03 '20 17:04 kotauskas

I don't disagree here. I'd be willing to accept a PR that did this.

mehcode avatar Apr 09 '20 09:04 mehcode