9 ms·
Returning from a function is calling the caller's continuation. If functions take multiple parameters, why not continuations? Semantically I think it's a lot
by shiro 13y ago
Returning from a function is calling the caller's continuation. If functions take multiple parameters, why not continuations?
Semantically I think it's a lot cleaner to make every function 1-in 1-out. Multiple parameters are just a disguise of passing a tuple. In dynamically typed languages, though, it's difficult to make it efficient.