Open stuartpb opened 6 years ago
Here's some stuff from the Trello list on introducing functions (Constructing and Calling Functions):
Like, um, converting Fahrenheit degrees to Celsius? or Kelvin?
I also described the depicted actions of the function as "taping a thing to another thing", like taping a duck to an umbrella, where the tape, the duck, and the umbrella are userdata, but that's a little too far removed from the real-Lua world that we've constructed thus far. It'd be better to just make the practical operation that the function entails more visually engrossing (maybe I size the number up, count on my fingers, put on some glasses, stick my tongue out, stuff like that)
Or rather, it comes forth fully sketched, because that's what functions do. We see the sketch comic big enough to kind of make out the sketched forms, and be able to tell that's what's about to happen.
Chair rises, or falls?
Rises lets the ground floor be a physical floor that I could walk on, but I don't really need that.
Lowers works better (we talking about going calls "deep" into the stack, which has a deep limit), although it means that I'm lowering my chair temporarily and then raising it, which seems slightly counter-intuitive.
This also means less data that the computer has to store, but it also means more work that the computer has to do. This is usually fine - computers are really good at doing the same thing over and over again. It's what they're here for. However, for really tough stuff that can prove to be too much for the computer, there's a way we can combine this function with our previous table-based approach that we'll touch on in Chapter [Let's make a memoization function].
Notes from OneNote
Comments from Trello