News for hackers. Stuff that matters.
Re:Rust – A hard decision pays off by agumonkey on Wednesday August 24, 2022 @01:03PM (#32582393)
Started a small project with rust and serde(toml config). Having static checking of config an its parsing felt really good.
Re:Rust – A hard decision pays off by Gigachad on Wednesday August 24, 2022 @05:20PM (#32585919)
We started just writing configs in typescript which has the benefit of static checking in your editor with suggestions/underlines. Could likely do the same in rust.
Re:Rust – A hard decision pays off by agumonkey on Wednesday August 24, 2022 @08:40PM (#32587841)
I'm afraid by typescript "typesystem" even more so than rust borrows/lifetime. It's so versatile and stringy .. that said it's still good to have some.
Re:Rust – A hard decision pays off by Gigachad on Wednesday August 24, 2022 @08:48PM (#32587901)
What I'm proposing is rather than have Rust validate yaml/toml files, just write the actual config itself in Rust so that your editor can verify/show issues before running. Unless you require ability to edit configs without recompile.