thinking about how the left-pad incident was over some incredibly garbage code t...
mx alex tax1a - 2020 (6) @atax1a@infosec.exchange
thinking about how the left-pad incident was over some incredibly garbage code that somehow became a dependency. like, it padded the strings to the left by loop?
like. commes des fucke onne?
let left_pad = Printf.sprintf "%*s"
let left_pad_ch total str c =
let l = String.length str in
let pad = String.make (total - l) c in
pad ^ str