Results class, what is it for?
Opened this issue · 2 comments
mdbs99 commented
I haven't understand this part. There is a loop and the val
variable is replaced every time in the loop. Why is that?
fabriciofx commented
@ mdbs99 Yeah, you're completely right. It's not the best way to do it. In this code we just want to execute all statements and get only the last result. We can do it using a for
, but in this way it's cleaner ...
But I'll keep this issue open to think better on it. Any suggestion?
mdbs99 commented
Any suggestion?
Concatenate all results before return the value.