This is admittedly a fairly trivial edge case with an easy workaround but given that v3 is under development, I figured I'd bring it up.
Right now beancount doesn't allow you to close an account and then reopen it. (Only one open directive is allowed.) Should it?
This is the scenario I ran into today:
Several years ago I bought a house. So I closed the account Expenses:Rent. Now we are renovating the house and need to rent another place for a few months. So I need to re-open Expenses:Rent.
Sure, I could go back and just delete the close transaction from 2017 but that feels weird. Like I'm editing history. Also being able to have the account closed from 2017-2022 feels "right", in that there shouldn't be any transaction going to that account during that time period.
Alternatively, one could argue that the entire concept of "closing" doesn't really apply to Income/Expenses and is really just a bit of an implementation artifact since beancount doesn't have any real inherent semantics for accounts.
Does anyone else have thoughts or opinions on this?