News for hackers. Stuff that matters.
Re:Show HN: A SQL database implemented purely in TypeScript ... by cjdell on Monday September 28, 2020 @07:24AM (#24615446)
I had no idea you could compose string literal types AND infer variables using interpolation syntax in the context of conditional types.

I am salivating at the potential use cases for this...

Re:Show HN: A SQL database implemented purely in TypeScript ... by cuddlecake on Monday September 28, 2020 @08:27AM (#24615868)
It's a new feature from TypeScript 4.1 (this version is yet in beta)

https://devblogs.microsoft.com/typescript/announcing-typescr...

Re:Show HN: A SQL database implemented purely in TypeScript ... by cjdell on Monday September 28, 2020 @09:25AM (#24616359)
Lots of new toys to play with in this release! They've also explained each new feature really well...
Re:Show HN: A SQL database implemented purely in TypeScript ... by ricksharp on Monday September 28, 2020 @07:43AM (#24615568)
Right! That is insane - I had no idea it was possible to infer part of a string literal.

My mind is exploding at the possibilities.

Re:Show HN: A SQL database implemented purely in TypeScript ... by dixon395 on Tuesday September 29, 2020 @06:03AM (#24625789)
Typescript was created to bring static types in dynamic language, like JS. Now they made the static types more dynamic. What's next?)