The existing functions could take additional optional arguments, and they could do the same as before if these arguments are omitted.
I'm not so much in favor of having a multitude of functions doing essentially the same thing in different ways; I find flexible calling patterns more elegant. But it's not that important, and if dedicated functions are more efficient, maybe that's the way to go.
© Espruino, powered by microcosm.
Report a problem