4 ms·
Thank you, so many great features. My personal favorite is .declLiteral() syntax, which makes webserver route-configuration very easy and readable! If you are
by cztomsik 2y ago
Thank you, so many great features. My personal favorite is .declLiteral() syntax, which makes webserver route-configuration very easy and readable!
If you are ever in temptation to do a builder for internal DSL, .declLiteral() might be a better way. I think it might be very cool for GUI structures too.
I did a quick PoC for SQL query building, but unfortunately, any more advanced queries are better to copy & serialize their arguments for safety reasons, so not that useful there, but still, very hyped about this particular thing.
- cassepipe 2y agohttps://ziglang.org/download/0.14.0/release-notes.html#Decl-Literals https://ziglang.org/download/0.14.0/release-notes.html#Decl-... There's something weird about the example that's being given. Coming from C it feels like I am making my struct much bigger... But is it implemented as a pointer to another struct ?