On Friday, 29 November 2013 at 01:35:31 UTC, bearophile wrote: > A statically typed language should give a compile-time error > for such mistake. It is perfectly valid to pass a string to the write function. He simply called the wrong function.