shiny.gosling
shiny.gosling copied to clipboard
Have a print method for easy debug and better dev experience [3MD]
The gosling library is made in a way that we need to pass a lot of values to a lot of nested lists and it becomes easy to make mistakes here. Since a mistake like this is silent it becomes harder to debug such errors. Creating simple print methods for the gosling object will help users debug the gosling object that they have created.
We could create a simple S3 glass gosling
and have a custom print method to achieve this. If we see the potential of having more custom things we can think of creating a more robust gosling object to manage this and provide sensible error messages.
The gosling objects and functions should have a class that have a good print method to help debug any data based errors.