String.prototype.padLeft / String.prototype.padRight
coroutines at gmail.com
Wed Nov 18 01:36:13 UTC 2015
On Tue, Nov 17, 2015 at 4:54 PM, Bergi <a.d.bergi at web.de> wrote:
> I could not disagree more with that. Iterators don't have a "left" or
> "right" side, they have a start and an end? The former would be much more
> So when you `padStart` or `trimStart` an iterator you can be sure it will
> always put something in front of it or cut something at the beginning,
> regardless whether your iterator does iterate your array or structure
> backwards (right-to-left?), from left to right, top-down, bottom-up, or
> whatever direction you've drawn/imagined it in.
I think you are misunderstanding what I wrote.
"Iterators don't have a "left" or "right" side, they have a start and an end?"
This is my point. At that time I felt that left and right made more
sense because as we see iterators pick up in use it might be confusing
to see other functions elsewhere that create iterators using start/end
in their names. I thought that left/right made more sense because
it's very unambiguous that these are not generating functions, and
left/right refers very clearly to the left or right side of the
string. Someone later replied saying it would still be confusing with
script that is rendered right-to-left, but encoded left-to-right.
There is no win ~ it's been decided anyway, so I'm just laying down my
More information about the es-discuss