• ohheynoway@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    ‘using’ is pretty interesting, seems like it would make disposables easier to use. Though naming the disposable that you never use is a little weird.

    • DanielRosenwasser@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Though naming the disposable that you never use is a little weird.

      Usually you will use the disposable value, as it’ll have some other methods. In cases where you don’t, it’s often for something like locking/unlocking a resource.