For situations where defining the type is not possible, I'd like to use the lazy gradual typing. Meaning, I have a global type alias TODO that's the same as any.
declaretypeTODO=any;
While it's just a "hack", I do like it and it does come in handy from time to time. Some details.
However, the unknown solution you proposed seems much better overall.
For situations where defining the type is not possible, I'd like to use the lazy gradual typing. Meaning, I have a global type alias
TODO
that's the same asany
.While it's just a "hack", I do like it and it does come in handy from time to time. Some details.
However, the
unknown
solution you proposed seems much better overall.Never thought about it, nice :D. Does it do anything else besides tricking the compiler?