Spread arguments #238
Labels
Committed
The team has roadmapped this issue
ES6
Relates to the ES6 Spec
Suggestion
An idea for TypeScript
Example
Codegen
CoffeeScript introduces a fresh var, hoists it to top, and uses it to prevent re-eval of 'obj'. Local vars could be done inline
Typecheck
Issue is that this would prevent potentially valid code from passing typecheck. Key idea is that we would be checking the arity that we know as well as the BCT, knowing that the spread arrays could be empty.
Questions
The text was updated successfully, but these errors were encountered: