The Bridge of Death, Part Two
The Bridgekeeper is still at his post. The Gorge of Eternal undefined yawns beneath. A new day. New travellers.
“Stop! Who would cross the Bridge of Death must answer me these questions three.”
A JavaScript developer steps forward.
“What… is your favourite type?”
“Object! No — string — no, any — AAARGH!”
The developer plummets. The Bridgekeeper makes a note.
A second developer approaches. She is carrying parentheses.
“What… is your favourite type?”
“Option.”
“What… are its variants?”
“Some and None.”
“What… happens if you forget a variant in a match?”
“Compile error.”
The Bridgekeeper consults his scroll. He has no further questions. The developer crosses.
The next traveller: “What does she mean, compile error? I had a perfectly good if (user) check—AAARGH!!”