A women sent her kid that was into programming to the grocery store and told it:

“Please buy 1 bottle of milk if they have eggs buy 2”

The kid returned with just 2 bottles of milk. When it’s mom ask why it bought 2 bottles of milk, the kid said:

“Because they had eggs”

… Was the kid right?

  • Deebster@lemmyrs.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I always think this joke is more of a linguistics/grammar joke than programming. The kid resolves the ambiguity in the ellipsis incorrectly, but why is this a programmer joke?