
Software
Format strings in OCaml
OCAML doesn't have string interpolation, but it does have C-style format strings (but type-safe). Here's an example: let hello name = Printf.printf "Hello, %s!n" name (* Can be written as: let hello = Printf.printf "Hello, %s!" *) This is type-safe…







