2 ms·
Using the `match` method, you can guarantee that in the `some()` branch, v is not null, and will never be null. In the `if == null` method, the `something` ref
by chii 7y ago
Using the `match` method, you can guarantee that in the `some()` branch, v is not null, and will never be null.
In the `if == null` method, the `something` reference is null, but if you have functions that also reference `something` down the line, you're going to have to check it again for null-ness.