|
|
|
|
|
by nurettin
997 days ago
|
|
I understand the value of enforcing behaviours with types, but experience has taught me that this is a tooling issue, not something you have to wrap into a spaghetti mess every time you want to code an if. Example: While programming kotlin, intellij idea warned me whenever I accessed a nullable object without a null check, and gave suggestions to convert types to non-nullable in order to avoid the checks altogether whenever appropriate. I think there is value in keeping the code clean while keeping it correct at the same time, but that should be done at the compiler or linter level. |
|