-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve dev UX with proper function arglists (#4)
* Prefer to use original params vector For the common case, this produces smaller, more efficient javascript, and also automatically gives us a useful arglist in the function docs. However, it won't work if there's any destructuring in the params vector. * Handle variadic and destructured arglists This certainly adds some complexity, but since it's all handled at compile time, so there's no overhead at runtime. It also means that in the general cases you can get better experiences, but we still support the fancy case if anybody wants to do that. * Fix variadic support with correct cond cordering
- Loading branch information
Showing
2 changed files
with
70 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters