2 ms·
> This is one big advantage for using Rust for both backend and frontend, in that you never have to worry about your types getting out of sync. Of course this
by da39a3ee 5y ago
> This is one big advantage for using Rust for both backend and frontend, in that you never have to worry about your types getting out of sync.
Of course this is a hack compared to Rust BE and FE, but I’ve been finding that auto-generating Typescript type definitions from a Pydantic (Python) API works pretty nicely. Of course, what’s going on under the hood there is all a lot uglier than a beautiful modern compiler with an expressive modern type system, but it’s cool that it works.
- the__alchemist 5y agoWhen I learned of Pydantic, my first thought was "This is a lot like Serde in Rust".