You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by GitBox <gi...@apache.org> on 2023/04/17 16:55:54 UTC
[GitHub] [incubator-opendal] teckick created a discussion: check trait functions are overwritten
GitHub user teckick created a discussion: check trait functions are overwritten
Is there a static analysis tool which can check all the trait functions are overwritten by a struct?
e.g. For the `TracingLayer`, all the functions in `LayeredAccessor` should be handled.
GitHub link: https://github.com/apache/incubator-opendal/discussions/2026
----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@opendal.apache.org
[GitHub] [incubator-opendal] teckick edited a discussion: check trait functions are all overwritten
Posted by GitBox <gi...@apache.org>.
GitHub user teckick edited a discussion: check trait functions are all overwritten
Is there a static analysis tool which can check all the trait functions are overwritten by a struct?
e.g. For the `TracingLayer`, all the functions in `LayeredAccessor` should be handled.
GitHub link: https://github.com/apache/incubator-opendal/discussions/2026
----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@opendal.apache.org
[GitHub] [incubator-opendal] teckick edited a discussion: check trait functions are all overwritten
Posted by GitBox <gi...@apache.org>.
GitHub user teckick edited a discussion: check trait functions are all overwritten
Is there a tool which can check all the trait functions are overwritten by a struct?
e.g. For the `TracingLayer`, all the functions in `LayeredAccessor` should be handled.
GitHub link: https://github.com/apache/incubator-opendal/discussions/2026
----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@opendal.apache.org
[GitHub] [incubator-opendal] suyanhanx added a comment to the discussion: check trait functions are all overwritten
Posted by GitBox <gi...@apache.org>.
GitHub user suyanhanx added a comment to the discussion: check trait functions are all overwritten
It's hard to check. And actually not all functions should be overridden. It depends.🤔
GitHub link: https://github.com/apache/incubator-opendal/discussions/2026#discussioncomment-5639732
----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@opendal.apache.org
[GitHub] [incubator-opendal] Xuanwo added a comment to the discussion: check trait functions are all overwritten
Posted by GitBox <gi...@apache.org>.
GitHub user Xuanwo added a comment to the discussion: check trait functions are all overwritten
Trait functions are intentionally designed to have default implementations.
GitHub link: https://github.com/apache/incubator-opendal/discussions/2026#discussioncomment-5645552
----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@opendal.apache.org