1. 18
  1. 4

    This is really cute. I remember doing function machines at first school; we had some kind of a flash game where a machine would be on the interactive whiteboard and we could drag numbers into it, watch the machine rumble into life, and splurge out something on the other side.

    It’s interesting how functional programming seems so graspable for young children, yet is considered so advanced in computer science circles.

    1. 2

      It simply hadn’t occurred to him that the machine might not care about the input. (Interestingly, many students in my functional programming class this semester were also confused by constant functions when we were learning about the lambda calculus; they really wanted to substitute the input somewhere and were upset/confused by the fact that the bound variable did not occur in the body at all!)