raulraja01/24/2019, 2:53 PM
annotations does a great job and has proven very useful for controlling side effects in Arrow. Kudos to everyone involved with the suspend system! The only problem I'm having is that the compiler error messages for restricted contexts are not very useful. They just state the arbitrary suspended function can't run there. I would like to customize such error messages a la carte to provide reasons why functions are restricted in a suspended receiver. For example:
Is there a way to customize such error messages? If not is this something that would change in the compiler or std lib?
save() can't be invoked in this [UI] scope because is scoped to [DB]
elizarov01/25/2019, 7:15 AM