Guard state transitions with proto methods
Problem
When implementing stateful object it is very important to enforce proper transition between states. Take a look at this happy-path code:
⛶class File {
has IO::Path $.path is re...