Replies: 4 comments
-
Maybe we can use github discussions instead of using the issue lists, but I think we need to do this in an organisation repo. |
Beta Was this translation helpful? Give feedback.
-
I've added a discussion board on the repository: https://github.com/jaytaph/gosub-browser/discussions |
Beta Was this translation helpful? Give feedback.
-
A general pattern in Rust libraries and projects is to wrap / translate errors from third-party libraries into ones owned by the project. For libraries (e.g., internal code), thiserror is often used. For application code (code near I propose carrying out a pass through the code, looking for occurrences of I am not sure how the project-owned ParserError would fit into this. Perhaps it would be one among the larger set of errors to handle, as it seems focused on the actual task of parsing? |
Beta Was this translation helpful? Give feedback.
-
Thinking about pub enum ParserError {
Validation { code: String },
}
// Later
ParserError::Validation { code: "control-character-in-input-stream".to_owned() } You'd only break out separate variants beyond this when it's convenient for |
Beta Was this translation helpful? Give feedback.
-
My idea of the short term actions would be this:
this only the screen (textmode, maybe graphical).
be used as the DOM tree.
Beta Was this translation helpful? Give feedback.
All reactions