-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New frontend #65
New frontend #65
Conversation
125e4ba
to
4b7f37e
Compare
impl From<&[Spanned<Chunk>]> for FormatString { | ||
fn from(chunks: &[Spanned<Chunk>]) -> Self { | ||
Self { value: chunks.into(), short: None } | ||
} | ||
out | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This impl feels a bit unidiomatic because it converts and implicitly clones. Is it used at all / a lot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, a lot, for biblatex
conversion
Superseded by #66. |
This commit introduces a new frontend that is more easily maintainable. A macro is the single point of definition for all entry fields and each type has to implement the
HayagrivaValue
trait for a centralized and composable approach to serialization and deserialization.This PR prepares Hayagriva for CSL ingestion and processing.
Please do not review the legacy styles.