News for hackers. Stuff that matters.
Re:Macro-ts: TypeScript compiler with typesafe syntactic mac... by throw_m239339 on Tuesday May 30, 2023 @08:01AM (#36123775)
A swagger schema looks like YAML with a finite set of types. I don't see why you'd need to use eval in that case when from one hand you already have the schema in a javascript object and the other hand a simple builder pattern would build your API directly from that schema. Absolutely no need for macros.
Re:Macro-ts: TypeScript compiler with typesafe syntactic mac... by eropple on Tuesday May 30, 2023 @09:39AM (#36124763)
Generally speaking, because it would be very nice to have types without having to do offline code generation.