3 ms·
> Compare that to C# and a dictionary lookup which either returns or throws an exception - and there is no alternative. FYI, there is an alternative: TryGetVal
by zmj 8y ago
> Compare that to C# and a dictionary lookup which either returns or throws an exception - and there is no alternative.
FYI, there is an alternative: TryGetValue. https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2.trygetvalue https://docs.microsoft.com/en-us/dotnet/api/system.collectio...