antoyo / relm

Idiomatic, GTK+-based, GUI library, inspired by Elm, written in Rust
MIT License
2.43k stars 78 forks source link

Two syntaxes for event connect #194

Open antoyo opened 4 years ago

antoyo commented 4 years ago

We can do:

connect!(plus_button, connect_clicked(button), relm, Msg::Increment(button.clone()));

and

connect!(relm, plus_button, connect_clicked(button), Msg::Increment(button.clone()));

Can we remove one of these?