Hacker News new | ask | show | jobs
by throw_m239339 1112 days ago
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.
1 comments

Generally speaking, because it would be very nice to have types without having to do offline code generation.