You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
target is quite long to type, and it becomes noticeable when using the delegate macro a lot.
Could we shorten it for the next version of this crate? :)
E.g. how about using to as keyword, it also reads nicely, like "delegate to self.foo":
If you don't like to, how about for? It reads less like an English sentence compared to to, but has the benefit of getting syntax-highlighted in editors, and looks nice/familiar because it opens a block:
target
is quite long to type, and it becomes noticeable when using thedelegate
macro a lot.Could we shorten it for the next version of this crate? :)
E.g. how about using
to
as keyword, it also reads nicely, like "delegate to self.foo":If you don't like
to
, how aboutfor
? It reads less like an English sentence compared toto
, but has the benefit of getting syntax-highlighted in editors, and looks nice/familiar because it opens a block:(Another possibility would be
as
but that already has a semantic connotation that could confuse readers in this context.)The text was updated successfully, but these errors were encountered: