3 ms·
If you really think TIOBE is a reasonable way to gauge dev mindshare, fine. 1. Python with mypy has `strict_optional`. On by default. 2. C, being “portable a
by semiquaver 4y ago
If you really think TIOBE is a reasonable way to gauge dev mindshare, fine.
1. Python with mypy has `strict_optional`. On by default.
2. C, being “portable assembler” is not really statically typed.
3. Java has had Optional for years, although it’s not the most pleasant to work with it does exist. And JVM languages like Kotlin go well beyond this.
4. C++ has `not_null`.
5. C# supports type-system enforced non-nullable types since 8.0.
You said:
> languages that disallow nulls, if you are one of the 10 programmers on earth working in one of those languages
I hope it’s clear that you are simply incorrect. There are plenty of tools to eliminate nullable references in modern mainstream languages.
- gpderetta 4y ago> 4. C++ has `not_null`. Most importantly in C++ only pointers can be null. You can return value types that are not nullable.