GithubHelp home page GithubHelp logo

Comments (5)

jsquire avatar jsquire commented on June 23, 2024 1

Adding nullability to an existing API that has been released is considered a breaking change and is not something that we would be adding in the current form. To avoid inconsistencies, we do not currently have plans to annotate new members in existing libraries. We are continuing to monitor changes in the .NET ecosystem and tooling and should a path become available to introduce annotations in a non-breaking way, we may reconsider at that point. At present, this is not something that we will be adding.

from azure-sdk-for-net.

jsquire avatar jsquire commented on June 23, 2024

Hi @vanillajonathan. Thank you for reaching out and we regret that you're experiencing difficulties. The Service Bus client library is intentionally not annotated for nullability. Nullable reference annotations are something that we continue to evaluate for Azure SDK packages as the language and tooling evolves, but not something that we'll be enabling in the short term. There are several reasons for this, the most important being:

  • The Azure SDK strives to have a consistent set of patterns and feel across different libraries. As such, nullable reference annotations are not something that would be applied to individual libraries; it would be a decision that we need to apply to all of our current generation packages.

  • For most of our libraries, the service definitions do not adequately document which fields may be null. We continue to work with our service partners to improve these definitions, but it's a large effort that we expect to continue for some time.

  • Tooling still doesn't provide a thorough understanding of what breaking changes would be introduced by enabling nullable reference annotations. Avoiding breaking changes is one of the most important core tenants of the current Azure SDK generation; until we have confidence that we can prove that nullable reference annotations are safe for the public APIs that they were added to, the risk outweighs the reward.

Additional rationale and discussion can be found in #8880.

from azure-sdk-for-net.

github-actions avatar github-actions commented on June 23, 2024

Hi @vanillajonathan. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

from azure-sdk-for-net.

vanillajonathan avatar vanillajonathan commented on June 23, 2024

/unresolve That issue is several years old. Now is new times so it ought to be reconsidered.

This caused a bug for me and having the library annotated for nullability would improve the developer experience and reduce downstream bugs.

The Azure SDK would continue to be consistent across different libraries even with nullability since the API and behavior would remain the same. Nullability is just a compiler hint.

from azure-sdk-for-net.

github-actions avatar github-actions commented on June 23, 2024

Hi @vanillajonathan. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

from azure-sdk-for-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.