I was code reviewing some code today and ran into __ = expression(). I looked it up and apparently it's a throw away variable. Why use it when you can call a function and simply not assign the results by calling expression()?
Further, I noticed a lambda expression (e, _, x, _) => { }
Conceptually it's the same as (e, null, x, null) => { }
I was code reviewing some code today and ran into __ = expression(). I looked it up and apparently it's a throw away variable. Why use it when you can call a function and simply not assign the results by calling expression()?
Further, I noticed a lambda expression (e, _, x, _) => { }
Conceptually it's the same as (e, null, x, null) => { }
(post is archived)