3 ms·
Type systems aren't programs because sensible type systems are decidable. They're very specifically not a programming language but a constraint language. https
by pjc50 3y ago
Type systems aren't programs because sensible type systems are decidable. They're very specifically not a programming language but a constraint language.
https://3fx.ch/typing-is-hard.html https://3fx.ch/typing-is-hard.html ; more people should understand Hindley-Milner.
Now, there's also a case for compile-time programmability, but that is a feature that needs to be used carefully because it can make the question of what code is actually running very opaque, as well as arbitrarily increasing compile time. (C++, the bad bits)
> making compilation a program that you write wherein you can fully introspect your program
I'm experimenting with C# source generators at the moment, and wondering if there are any breakthrough features we could add this way by making it fully generalizable. (They have the limitation that they are additive-only, you can't mutate existing source)
- SigmundA 3y ago>They have the limitation that they are additive-only, you can't mutate existing source .Net has System.CodeDom which can load existing source code and mutate it.