-
Notifications
You must be signed in to change notification settings - Fork 49
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
maps syntax support #75
Comments
Agreed. Lets put it on the timeline. |
'(a b :name 12.5) ;; list
['a 'b :name 12.5] ;; vector
{:name "Chas" :age 31} ;; map
#{1 2 3} ;; set I think the collections syntax of clojure is a good reference, though tuple already took the '{}' sytax in Joxa. Using a clojure compatible syntax in Joxa makes it more like Lisp, rather than Erlang. |
@hhkbp2 Personally, I think the language would be more successful by catering to erlang developers who want a lisp, rather than trying to lure clojure developers with a familiar syntax. At the end of the day we are on the erlang vm, which carries a lot of the same semantics as the erlang language. |
Yes, Joxa would run on top of Erlang VM, but that doesn't mean it should follow everything(including syntax) in Erlang. If an Erlang developer really want a lisp which looks quite familiar with Erlang, probably he would prefer LFE to Joxa. In this article Differences Between Joxa and LFE(http://blog.ericbmerritt.com/2012/02/21/differences-between-joxa-and-lfe.html), @ericbmerritt describe Joxa as a Lisp happens to run on Erlang VM. Its syntax would mostly come from clojure/scheme, rather than erlang. That's why Joxa is created even though LFE is already there. And that's why some people like Joxa more than LFE(so do I). So I mentioned the clojure syntax above, though tuple syntax '{}' is from Erlang. |
Besides map, it would be great to have syntax support for the full set collections in Clojure, such as set, vector, seq. Anyone once knows Clojure would miss these highly consistent collections syntax and operators in Clojure a lot, no matter what other languages he uses from then on. Having them in Joxa would make the language powerful, consistent and handy(easy to use) as a Lisp, even though some collections are already there in Erlang library and open for usage. |
Joxa is Joxa; neither Erlang nor Closure. It has influences from both, of The main goal of Joxa is to provide a very simply language that will make a
Once we have that, It would make sense to start designing some data Eric On Mon, Jun 23, 2014 at 11:55 PM, Dylan Wen notifications@github.com
|
yeah that sounds like a great idea. makes it much more flexible. |
I guess the only thing we would need is to make the syntax extension a library approach is to hook into the reader. So we need that reader-macros. Here is a nice writeup on it https://gist.github.com/chaitanyagupta/9324402 Btw I completely agree that we should look lean towards Clojure instead of Erlang. |
Right now reader macros are based on peg grammers. Which make them On Thu, Jul 31, 2014 at 8:07 AM, robertj notifications@github.com wrote:
|
Actually my intention wasn't really to push towards a specific implementation but rather, that in generally it seems to be pretty easy to implement a reader macro. |
It is. and all the stuff is there. We just need to surface it to the On Thu, Jul 31, 2014 at 8:37 AM, robertj notifications@github.com wrote:
|
I know that this thread is basically dormant but I think recent developments in the 'clojure inspired lisp' space are worth mentioning. I think it would be worthwhile to fit into that ecosystem, not because of clojure but because of the sum of languages. I think [] would be the better tuple syntax, especially because it is currently only used for lists like (, |
it would be great to have maps support built in. maybe something like:
The text was updated successfully, but these errors were encountered: