3 ms·
Why is the `var` keyword required in function arguments if it's dynamically typed and there's no other possible option?
by bpicolo 9y ago
Why is the `var` keyword required in function arguments if it's dynamically typed and there's no other possible option?
- fasquoika 9y agoThis is a complete guess, but maybe so they can treat it the same way as normal variable declarations
- ateesdalejr 9y agoMight be. Probably reusing the same pattern matching code in function definitions.
- billytetrud 9y agoSo you don't create variables when you typo a variable name. Declarations are an error catching mechanism