News for hackers. Stuff that matters.
Re:jQuery v4.0 Beta by chipotle_coyote on Wednesday February 07, 2024 @09:12AM (#39288773)
Ruby and PHP both have string padding functions. So does Swift. (edit: and as Macha points out, C and any language with printf functionality, like Perl.) It’s not that uncommon.

(I was going to joke that TRS-80 BASIC had it circa 1979, but it turns out that it would be a two-step operation: Python’s str.ljust(40) would become LEFT$(STRING$(40, " "),40) .)

There are no comments on this comment yet.