logoalt Hacker News

vemv • today at 8:05 AM • 0 replies • view on HN

Typescript doesn't have a real repl. You cannot redefine just one variable in a running program and have the rest of the compilation untouched, yet aware of the redefinition.

I get that "hot reload" can feel similar, but it's not the same and is more limited for debugging, experimentation, extremely fast (sub-ms) iteration loops, etc.

Another thing you can't do is running/debugging tests without triggering more compilation. In a real repl language you drive things in-process, not from the outside with compilers and test runners.

Typescript is lovely btw, just have a go at other paradigms if you feel like it.