smithay icon indicating copy to clipboard operation
smithay copied to clipboard

Reduce usage of typemaps

Open DemiMarie opened this issue 4 years ago • 1 comments

When working with Smithay, the biggest pain point has invariably been the extremely heavy use of typemaps. If I pass the wrong type, I will get None with no explanation whatsoever, which is not something I expect when using Rust.

One alternative would be to make the entire crate generic over a Compositor trait that represented the compositor.

DemiMarie avatar Sep 06 '21 00:09 DemiMarie

Any onlookers, see https://github.com/Smithay/wayland-rs/pull/381 for the possible changes that would lead to removal of the type maps.

i509VCB avatar Nov 20 '21 03:11 i509VCB