2 ms·
Scala 3 has a compiler flag that makes `null` its separate type, making it completely null-safe. This would e.g. make ``` val a: String | Null = someLegacyJav
by gf000 1y ago
Scala 3 has a compiler flag that makes `null` its separate type, making it completely null-safe.
This would e.g. make
```
val a: String | Null = someLegacyJavaCodeReturningNullableString()
```
and explicit null check would only make the non-nullable string continue onward.