3 ms·
> Hashes raise an error if you try to read a nonexistent key. Depends on what method you use to read it. If you use [], what you describe is true, but if you u
by yxhuvud 8y ago
> Hashes raise an error if you try to read a nonexistent key.
Depends on what method you use to read it. If you use [], what you describe is true, but if you use the nilable variant, []?, it is not. But yes, having to handle and think of nilability is certainly a big change that will affect a lot of code.