TGViewer
Tact Kitchen Tact Kitchen @tact_kitchen · 505 subscribers
Post #20 969
⚡️ Introduced underscores _ as unused variable identifiers in foreach and let statements, as well as in catch () clauses

try {
// If you don't need the return value
let _ = myReturnIsUseless();

// If you found yourself looking for map length,
// and don't care about neither keys nor values
let counter = 0;
foreach (_, _ in map) {
counter += 1;
}

// If you never wanted that exit code anyways
catch (_) { }


🧑‍🍳 Contributor: Gusarich
🐙 Implementation: #338
🍣 Released in: v1.4.0

🍲 mic value drop
♨️ @tact_kitchen
  • ⚡ 11
More from @tact_kitchen
  1. May 30, 2025🎉 Tact Language Server & VS Code Extension v0.8.0 are live! Smarter code insight, TL-B su…
  2. May 28, 2025🎉 Tact v1.6.12 is released! This is another joint release: both v1.6.11 and v1.6.12 were…
  3. May 22, 2025We’ve launched the ultimate hunt for bugs and hacker mastery — the epic CTF has begun at p…
  4. May 19, 2025🎉 Tact v1.6.10 is released! Recently, TVM version 10 was rolled out in the mainnet. It in…
  5. May 7, 2025For you all, JetBrains IDEs lovers: intelli-tact plugin release 📸 🍲 got IDEA? ♨️ @tact_k…
  6. May 7, 2025🎉 Tact v1.6.7 is released! We've been listening to your feedback and analyzing the code w…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →