Deadlock between files

Consider putting your functions like new and save in a context module (e.g. Documents), so that the Document module only defines the struct itself. This way you separate the public API from the implementation details, and fix the cycle as a bonus.

2 Likes