-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clojure like keywords ? #5
Comments
Hi Gozala, do we really need this. We already have the "." notation to dereferece properties. Do you have any specific problem I can see? |
I think you misunderstand keywords. In clojure you don't need to define constants you just use them: |
I would like to use defun, def, defmacro, lambda ... rather than function, var, ... because I think LispyScript is much more for lisp and/to js programmers than js programmers . Using def, defun seems to be more friendly. |
@analysis918 LispyScript tries to maintain the JavaScript semantics as far as possible. However it is very easy to write a set of macros that will mimic any other Lisp dialect. |
Can we get a clojure like keywords ?
In clojurescript they used pretty neat hack for that:
https://github.com/clojure/clojurescript/blob/master/src/cljs/cljs/core.cljs#L1452-1458
I would probably just used some other prefix like ":" or "@" to make it easy for JS and silpy to collaborate:
:keyword
=>"@keyword"
The text was updated successfully, but these errors were encountered: