you are viewing a single comment's thread
view the rest of the comments
[–] 9 points 1 year ago* (4 children)

cries in left_pad

It's kind of astonishing how many people leaned on that library just to add fucking spaces to strings

  • source
  • parent
  • hideshow 4 child comments
  • [–] 7 points 1 year ago (3 children)

    It should be in the standard library anyway. Why the hell is it not?!

    I mean yeah, I can write my own function to do the same thing and probably I've done it at some point in some coding exercise as a beginner, but this seems like such a common thing to use, it should be in the standard library of any sane language.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 year ago (2 children)

    It is, as padStart, which makes the number of packages using leftpad even more incomprehensible

  • source
  • parent
  • hideshow 2 child comments