Closed wyfo closed 2 days ago
@wyfo I may go one step further, and use the short form pub
and sub
and query
as the latter is short enough.
Do you mean zenoh::r#pub
? And we are back to use keywords as module name 😛
More seriously, we could also keep the name and provide a renamed reexport, like pub use subscriber as sub
.
Another option could be to unify pub
and sub
in pubsub
.
Similarly for query
and queryable
unified into query
.
I like this idea!
@wyfo Could you open a PR that address this issue plus https://github.com/eclipse-zenoh/zenoh/issues/1147 and https://github.com/eclipse-zenoh/zenoh/pull/1160? I think we should converge on this aspect pretty soon before the final 1.0.0
release.
For #1160, @evshary finally agree with the reexport, and for my part, I like so much zenoh::pubsub
that I don't think having zenoh::Publisher
is important anymore. So it may also be closed.
I will open a PR.
Describe the feature
zenoh::publisher
was previously namedzenoh::publication
, but was renamed to be aligned withsubscriber
(query
module is still not aligned btw). However, maybe we should reverse this renaming, and also renamesubscriber
module intosubscription
.There would be an issue for
queryable
module, as it would have to be namedquery
, but there is already a module namedquery
. IMO, both should be merged, becausequeryable
is also related to query; now, we have a strange situation whereQuery
type lies inqueryable
module and notquery
.@Mallets @kydos @milyin