Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Allowing a wider range of characters for identifiers #23

jkalbhenn opened this Issue Oct 19, 2012 · 2 comments


None yet
2 participants

For example the minus sign, which is a commonly used separator in lisp like languages.
It is not a supported character for identifiers in Javascript, so there should be no conflict. ? and > could be considered, too.

  • a-b could be converted to a_b
  • a->b to a_to_b
  • ? could add a "p" suffix for "predicate". a? would become a_p.
  • ! could add a "x" suffix. something like set! would become set_x

There could also be a generic way to convert characters not supported by javascript. For example by using ".charCodeAt()" unicode values. "a?" could be converted to "a_u63".
It wouldn't really matter how long the variables are if the files get minified.


santoshrajan commented Oct 19, 2012

Thanks for the inputs. I will look into this and see what all I can add in future versions.


ghost commented Oct 19, 2012

Can't agree more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment