anko / eslisp

un-opinionated S-expression syntax and macro system for JavaScript
ISC License
528 stars 31 forks source link

`return` requires an argument #53

Closed alandipert closed 7 years ago

alandipert commented 7 years ago

In Javascript, return; in a function returns undefined

In eslisp, the built-in return macro requires an argument, so returning without a value requires writing (return undefined)

anko commented 7 years ago

Thanks for catching that!

I've published 0.7.6 which should fix return to allow zero arguments. (Demo here.)

alandipert commented 7 years ago

Thanks for fixing!