skip to content

Type Coercion and Gotchas

0 questions

YAML guesses types, so NO becomes false, 0755 can become an octal number, and a version like 1.20 becomes a float. The Norway problem is a favourite interview anecdote, and the point of it is knowing to quote the value or tag it explicitly with !!str.

questions

0 questions