A computer scientist

A wife says to her husband, a computer scientist:

“Could you please go to the market and buy a carton of milk and if they have eggs please buy 6”

So the husband goes to the supermarket and comes back with 6 cartons of milk

When she sees that the wife asks: “Why did you do that?”

And the husband replies: “Well they had eggs.”