Discuss Online
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
danhab99@programming.dev to TypeScript@programming.dev · 2 years ago

Typescript is implementing a using keyword

www.totaltypescript.com

external-link
message-square
6
link
fedilink
  • cross-posted to:
  • tech@kbin.social
4
external-link

Typescript is implementing a using keyword

www.totaltypescript.com

danhab99@programming.dev to TypeScript@programming.dev · 2 years ago
message-square
6
link
fedilink
  • cross-posted to:
  • tech@kbin.social
TypeScript 5.2's New Keyword: 'using'
www.totaltypescript.com
external-link
TypeScript 5.2 introduces 'using', a keyword that disposes anything with a `Symbol.dispose` function upon leaving scope, making resource management easier.
  • nickel@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    Does using function as a const? Meaning: when a using variable is declared, is it immutable?

    • burkybang@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      This comment sounds like you’re having a stroke if we didn’t know the context.

TypeScript@programming.dev

typescript@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !typescript@programming.dev
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 6 users / month
  • 58 users / 6 months
  • 2 local subscribers
  • 1.03K subscribers
  • 68 Posts
  • 80 Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Thomas@lemmy.douwes.co.uk
  • Ategon@programming.dev
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org