Xuanwo commented on PR #7130:
URL: https://github.com/apache/opendal/pull/7130#issuecomment-3707971711

   > LGTM!This is a very good feature.
   > 
   > There’s one thing I’m not quite sure about: when specifying the purpose of 
a route in the `fn route()` method, is it better to use an `Operator` or an 
`Accessor`? 
   
   My current plan is to use `Operator`, as it is part of our stable public 
API. I also prefer to avoid letting users interact directly with `Accessor`.
   
   > Although the boundary between the two doesn’t seem very strict at the 
moment, using an `Accessor` might allow for more complex composition rules?
   
   Ideally, the `Operator` is simply a wrapper around the `Accessor`. If users 
need to perform more complex operations, they can directly construct the 
`Accessor` and use `Operator::new`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to