What I’ve done is switch whatever I work with to Hungarian Notation.
You know what the variable can hold. You can easily add a test for it. Someone that comes after will be able to know what it is.
It won’t complain, but since you know the type, you can add a quick if to validate that it is what you expect it to be.
It‘s actually working for us.
What I’ve done is switch whatever I work with to Hungarian Notation.
You know what the variable can hold. You can easily add a test for it. Someone that comes after will be able to know what it is.
It won’t complain, but since you know the type, you can add a quick if to validate that it is what you expect it to be.
It‘s actually working for us.