Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
CountTable raisen error instead of returning a count of 0 #10065
CountTable should be able to return a count of zero. Today it throws a "key not found" exception when the count is zero; a behaviour that is perfectly sensible for a hash table but not for a CountTable.
We have getOrDefault() that works like requested but it makes sense to make it the default get behaviour of CountTable.