Replace some tools functions with prototype calls #2862
Unanswered
arthuro555
asked this question in
Technical questions about the codebase
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was sondering, wouldn't it be worth it to instead of making a lot of useless functions like
couldn't we just call the method from the prototype (instead of using as function
gdjs.evtTools.common.getVariableNumber
, we could usegdjs.Variable.prototype.getAsNumber.call
for the same result). This would remove unnecessary API surface that we need to maintain, and make the code size smaller.Beta Was this translation helpful? Give feedback.
All reactions