4 ms·
Typescript has conditional types, which means it can be used as a programming language itself. In theory you can write any arbitrary program - game of life is j
by bazoom42 3y ago
Typescript has conditional types, which means it can be used as a programming language itself. In theory you can write any arbitrary program - game of life is just an example. You have to define numbers and arithmetics from scratch though, so it is not very practical.
Conditional types are probably rarely used in practial code, but it opens the door for a lot of geekery.
- ushakov 3y agoWe’re using conditional types for type inference in garph (https://garph.dev https://garph.dev)