News for hackers. Stuff that matters.
Re:A quest for safe text formatting API by tyingq on Saturday June 19, 2021 @10:27PM (#27566559)
"Formatting facilities in languages other than C are usually type-safe. For example, in Python you get an exception when trying to format a string as an integer"

Seems like that section could use more examples. A fair amount of dynamic languages won't bomb if you try to format a string as a number with their s/printf equivalent. They coerce the string into a number, with sometimes unexpected (though documented) results. Perl, PHP, and awk all do this.

There are no comments on this comment yet.