3 ms·
To be fair. The idiomatic C# would be: if(TrySomeOperationThatMightFail(out var value)) { } But even with that I often wish it was more like the R
by CuriousSkeptic 8y ago
To be fair. The idiomatic C# would be:
if(TrySomeOperationThatMightFail(out var value))
{
}
But even with that I often wish it was more like the Rust example
- snypox 8y agoExcept 99% of methods are async in a web app where the out variable does not work.