8
neeno
4y

"Where an expression’s main job is to produce a value, a statement’s job is to produce an effect."

That's the cleanest way of explaining the difference between expressions and statements I've ever seen. Kudos to you, Bob.

craftinginterpreters.com if anyone's interested.

Comments
  • 3
    Now do statement expressions, and expression statements. 😸
  • 0
    Bob mentioned, wild @SortOfTested appears. As usually happens with any and all food, somehow I expected more spice.

    (Forgive me, I just woke up and haven’t even had a full cup of coffee yet)
Add Comment