Replies: 1 comment 8 replies
-
Yeah I will adopt the first approach so every method should return the created entity. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For now, the approach is to allow the chaining of functions calls like this:
This seems nice but with this approach we have no way to retrieve the created instance (circle for instance)
I think it would be intersting to switch to the following synthax:
It will be easier to test and edit properties.
Another approach would be to have different ways to create elements by duplicating the class functions
addCircle
would havedrawCircle
method that returns theCircle
instanceBeta Was this translation helpful? Give feedback.
All reactions