Hacker News new | past | comments | ask | show | jobs | submit
C# `out` is kinda nice because it can be `var`d and used directly.
Erm... what do you mean?

  if (int.TryParse(str, out var value) && value == 5)
  {
      // value is available 
  }

   // value also available