How should we reduce the compiler error print statement #510
stephenberry
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Glaze uses a struct to define compile time options. This struct continues to grow, but is passed in as a template parameter. This is wonderful for providing so many user options that don't degrade performance, but an inconvenience is that compiler errors will print out this entire structure when printing errors.
What is the best way to reduce this output to make Glaze compile errors easier to read?
One option is to pack multiple options into a uint64_t. But, this isn't nice for when users make the option struct.
I know there is a way to essentially rename the type for the compiler to hide the opts struct from the output, but this could make it hard to discern where errors are coming from.
I don't think this is a major problem, but I wanted to throw this out for future discussion.
Beta Was this translation helpful? Give feedback.
All reactions