3 ms·
Typescript is kind of like that. You can run the compiler with the type validations disabled. That can lead to potentially broken code but it can also be signif
by koolba 9y ago
Typescript is kind of like that. You can run the compiler with the type validations disabled. That can lead to potentially broken code but it can also be significantly faster than waiting for all type checks to complete.
- smitherfield 9y agoBut if you do that you’re just writing JavaScript with pointless added verbosity and significant complexity pointlessly added to your toolchain.
- koolba 9y agoThe idea is to have fast compilation most of the time (local dev) and slower/full compilation during the "real" build. Here's a testing analogy: My CI server runs all tests, every time. My local machine only runs the ones I tell it to run as if I change one small piece of an app then I'm not going to wait for the entire test suite to run.
- smitherfield 9y agoAnd the incremental compilation isn't fast enough for you? Plus building Angular 2 (hundreds of thousands of LoC) takes only a few seconds.