How would function calls be differentiated from non-function calls? #424
-
Consider this: u foo => bar!
u bar => foo! Or more verbose: function foo () => bar()!
function bar () => foo()! Is it recursive, or will it just output each other's value? How would you achieve the other thing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
i think line 1 would turn bar() into a string because bar isn't defined yet |
Beta Was this translation helpful? Give feedback.
-
Very good point. From the language author's perspective, there isn't really anything we can do. From the programmer, it could be mitigated by inserting a |
Beta Was this translation helpful? Give feedback.
-
This would cause a runtime stack overflow crash. function foo () => bar()!
function bar () => foo()!
foo()! As would this: u foo => bar!
u bar => foo!
foo! |
Beta Was this translation helpful? Give feedback.
This would cause a runtime stack overflow crash.
As would this: