twilco / beancount

Rust tooling surrounding beancount, a text-based double-entry bookkeeping language.
59 stars 13 forks source link

Consider owned properties #22

Closed ThomasdenH closed 4 years ago

ThomasdenH commented 4 years ago

Currently, the beancount properties borrow from their input. However, this makes it very hard to create a plugin, since that would require returning new constructs that are owned by the current function:

fn plugin<'a>(entries: Vec<Directive>, options_map: HashMap<&'a str, &'a str>) -> (Vec<Directive>, Vec<Errors>);
ThomasdenH commented 4 years ago

Never mind, I found the ast-to-constructs branch which seems to implement this.