Skip to content

Loading…

Dashes in function name counts as argument #143

Closed
vendethiel opened this Issue · 2 comments

4 participants

@vendethiel
Collaborator

Hi, I've found a little issue that can bit you if you use a dashed-named function with parameters.

function dash-ed then compiles to function dashEd(d) {}
function dashEd then compiles correctly to function dashEd() {}

@goto-bus-stop

This also means function a-b c then doesn't compile; it's lexed function aB b c then, invalid assign

@vendethiel vendethiel referenced this issue in satyr/coco
Closed

Hyphenated names for functions #162

@gkz gkz closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.