Answer the question
In order to leave comments, you need to log in
How can this scribbling at the syntax level be reduced?
Here I have this code:
w.uint8(1);
w.uint16(this.id);
w.uint16(this.x);
w.uint16(this.y);
w.color(this.color)
w.uint8(1),
.uint16(this.id),
.uint16(this.x),
.uint16(this.y),
.color(this.color);
Answer the question
In order to leave comments, you need to log in
it all depends on what the methods return. If inside they return this (i.e. the object instance itself), then you can do this:
w.method1().method2().method3()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question