GithubHelp home page GithubHelp logo

Comments (3)

tintoy avatar tintoy commented on August 10, 2024

Hi - thanks for the feedback!

I’ll try to have a proper look at this sometime on Thursday.

from dotnet-kube-client.

tintoy avatar tintoy commented on August 10, 2024

Hey, thanks for taking the time to leave such detailed feedback - sorry for the late response, but work has been a little crazy recently.

I guess I'd never really noticed that particular problem because I've never run into it; I haven't tried using var in that way, but I can see how the issue could be tricky to spot in that scenario. I'm sorry the API design caught you out like that; I usually try to think carefully about API-design footguns and avoid them where practical. I previously considered changing the naming of async methods but it would represent a breaking change to existing users and I try hard to avoid that if it all possible.

If it helps, the code you specified in your example should generate compiler warning CS4014; I appreciate that it's not ideal, but it's better than nothing 🙂

Glad to hear you find it useful, BTW!

from dotnet-kube-client.

SiliconKid avatar SiliconKid commented on August 10, 2024

Hi Adam

I think the ideal scenario here is to provide async method signatures with the standard Async suffix but leave the existing methods without the suffix so as not to cause breaking changes. Just make the Async methods call the ones without the suffix so there's no code duplication.

That way people will at least see the method signatures with the Async convention in intellisense and can use those, but under the hood both variants of the method are actually async and will work.

Allan

from dotnet-kube-client.

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.