Skip to content

add toString methods for some graphics classes#44

Open
dandrake wants to merge 1 commit into
mainfrom
tostring-all-the-things
Open

add toString methods for some graphics classes#44
dandrake wants to merge 1 commit into
mainfrom
tostring-all-the-things

Conversation

@dandrake

Copy link
Copy Markdown

There should now be toString methods on all the classes commonly used by students, and for which having something sensible to use in a print statement or to see in the debugger is useful.

One gap that remains, I think, is that it's still not very easy to interrogate a GraphicsGroup or CanvasWindow and see what it contains. One approach could be to add a method similar to toString that iterates over the child objects and returns a large string with all of them, but that doesn't seem like a good solution. OTOH making it easier to get the children may not be what we want? Looking for feedback here.

Fixes #42.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

not all classes have useful toString() methods

1 participant