This repository was archived by the owner on Feb 17, 2026. It is now read-only.
Why Rust?
#130
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to model the styling language and input data in code, and generate schemas from there, so they are tightly-coupled.
Because of that tight-coupling, I wanted a language that had a good typing system.
This is the opposite approach to CSL 1.0, where schemas were developed completely independently of code, so that updating the language is also quite difficult.
I first tried this with typescript, but ran into various problems.
The two together would mean having to write and maintain a lot of custom code, which I am not willing to do.
Also, JS is just kind of a mess in general from my POV.
Rust, OTOH:
Serdeis just awesome, and gives me easy serialization, deserialization, and validation of the models, with support for different formats (here just JSON and YAML, but there are other options). I don't have to write and maintain any custom code to handle this. While I don't understand the details, my understanding is there are features in Rust that make this possible, that many other language simply don't have.Beta Was this translation helpful? Give feedback.
All reactions