3 ms·
> Is static typing that important for a scripting language? Yes. Firstly, static types are useful for even tiny programs, like 100 lines. Secondly is "scriptin
by IshKebab 5mo ago
> Is static typing that important for a scripting language?
Yes. Firstly, static types are useful for even tiny programs, like 100 lines. Secondly is "scripting language" really a thing? There's nothing fundamentally different about a "scripting language" to a non-scripting language. Look at Javascript - that even has "script" in the name! - but clearly Typescript is an enormous improvement on it.
- Capricorn2481 5mo ago> Look at Javascript - that even has "script" in the name! Look at Java, it has nothing to do with coffee! My understanding is a script does two things 1) It can be interpreted. Even if it has some kind of JIT or bytecode step, it can be run as soon as file changes are made. 2) It's one or several informally wired together files for small tasks. A small task meaning you could patch it live without being worried about breaking something, because you can keep it all in your head. It's a narrower definition of a "program." At that level of programming, terseness becomes an asset rather than a liability, and that's why "scripting languages" tend to be dogged on in larger programs.