kevinbarabash / compiler

2 stars 0 forks source link

varargs support #57

Closed kevinbarabash closed 2 years ago

kevinbarabash commented 2 years ago

Only the last param can be varargs. Any args that are passed this way will be passed to the function as an array. inferFuncs will need to be updated to handle this. We also need a way to mark a param on TFun as variadic. We could introduce an ERest node for this (and then reuse it for object/array/tuple rest).

kevinbarabash commented 2 years ago

Closed by #60.