Kartik Agaram
Jack Rusher
10/11/2020, 12:16 PMRobert Butler
10/11/2020, 3:04 PMKartik Agaram
Garth Goldwater
10/11/2020, 11:00 PMx y myFunc: x y + 4 x *;
would it pull two values off the stack, with the x getting the top value and y getting the one below it?
also (tricky question): any thoughts on recursion?Kartik Agaram
x y myFunc
should map to a call like 3 4 myFunc
with x
getting 3
and y
getting 4
.
Perhaps I'm missing something, but I don't think there's anything tricky about recursion! A recursive call is just a function call like any other, and the visualization metaphor here should uncoil it just like any other call. I don't have conditionals or quotes yet, so all recursion at the moment would be infinite. So it's not very useful at the moment.Kartik Agaram
x
).Garth Goldwater
10/12/2020, 12:45 AMKartik Agaram
Robert Butler
10/12/2020, 2:36 AMRobert Butler
10/12/2020, 2:38 AM