4 ms·
Wait what? "Adding types will not prevent your program from compiling" So even if you type-annotate everything, you will never get compile-type type errors? Th
by shangaslammi 13y ago
Wait what? "Adding types will not prevent your program from compiling"
So even if you type-annotate everything, you will never get compile-type type errors? That makes the whole thing seem completely pointless.
- gsg 13y agoYou get warnings. I guess the aim is to allow people to run their code no matter how broken it is, while still giving a way to detect some errors. Seems pretty odd to me.
- spankalee 13y agoThere are two execution modes for Dart: checked mode and production mode. Check mode inserts type checks for assignments and parameters. This, together with the static analysis that the Editor/analyzer does, generally works as well as full static typing, in my experience.