News for hackers. Stuff that matters.
Re:An introduction to type programming in TypeScript by mingyeow on Wednesday February 02, 2022 @01:04AM (#30174339)
This is fantastic writing:

  After writing TypeScript for a while, it occurred to me that the TypeScript language actually consists of two sub-languages - one is JavaScript, and the other is the type language.

  For the JavaScript language, the world is made of JavaScript values; for the type language, the world is made of types.
Re:An introduction to type programming in TypeScript by brabel on Wednesday February 02, 2022 @06:47AM (#30176332)
This is called a "biformity". There was a great post about this the other day:

https://hirrolot.github.io/posts/why-static-languages-suffer...

Re:An introduction to type programming in TypeScript by avgcorrection on Wednesday February 02, 2022 @10:12AM (#30178615)
Re:An introduction to type programming in TypeScript by benrbray on Wednesday February 02, 2022 @09:50AM (#30178305)
You might be interested to learn that in languages like Coq with dependent types, the difference between type-level and value-level languages (almost) disappears! Check out the Software Foundations book [1].

[1] https://softwarefoundations.cis.upenn.edu/