You are correct that the meaning of the bool then is read_only, so it would probably be clearer if it's named like that.