I designed CrabBake for this use case
(docs.google.com/document/d/1โฆ)
but this trick is definitely cooler and imposes less of a burden on the compiler
bit of a cross-platform hazard though
This tweet is unavailable
2
1
5
(crabbake "serializes to const", which for a large object graph can mean a lot of const code to parse and compile, which isn't bad but can be slow)
1
2
aah I see - nice to have that flexibility.
Jan 31, 2022 ยท 5:09 PM UTC
1

