3 ms·
Fascinated to see that the core spec is written in TypeScript and not, say, an OpenAPI spec or something. I suppose it makes sense, but it’s still surprising to
by elliotbnvl 1y ago
Fascinated to see that the core spec is written in TypeScript and not, say, an OpenAPI spec or something. I suppose it makes sense, but it’s still surprising to see.
- lovich 1y agoWhy is it surprising? I use typescript a lot, but I would have never even thought to have this insight so I am missing some language design decisions
- fnordpiglet 1y agoBecause type script is a language not a language agnostic specification for languages. As someone who uses typescript a lot that probably is irrelevant. But if I’m using Rust, say, then the typescript means I need to reimplement the spec from scratch. With OpenApi, say, I can code generate canonically correct stubs and implement from there.
- pattobrien 1y agoThere's an OpenAPI spec generated from the Typescript schemas in the official spec repo, so codegen of other SDKs is still possible.