3 ms·
What you are describing is no different than modern Java where variables are marked @Nullable and its a compiler or linter error to dereference it without being
by esrauch 10y ago
What you are describing is no different than modern Java where variables are marked @Nullable and its a compiler or linter error to dereference it without being inside a null-check conditional. If you don't use this in Java it is just the same as having String? as your type everywhere.
- masklinn 10y ago> What you are describing is no different than modern Java It is in fact quite different. String/String? is not an optional annotation requiring the use of a linter and integration within an entire ecosystem which mostly doesn't use or care for it, it's a core part of the language's type system. > If you don't use this in Java it is just the same as having String? as your type everywhere. Except using String? everywhere is less convenient than using String everywhere, whereas not using @Nullable and a linter is much easier than doing so.,