News for hackers. Stuff that matters.
Re:Pharen: A lisp that compiles to PHP by tmp48764 on Sunday January 30, 2011 @06:24PM (#2159541)
This is really cool and for the most part the syntax seems to make sense.

One thing I don't understand is why there is special unnatural-looking syntax for dictionaries. It is inconsistent that comma=whitespace everywhere else. Perhaps something like:

(array "a"=>1 "b"=>2)

Note that this currently compiles to array("a", =>1, "b", =>2)

Re:Pharen: A lisp that compiles to PHP by Scriptor on Monday January 31, 2011 @01:07PM (#2162491)
The current dictionary syntax is actually typical for lisps, particularly this is exactly what Clojure does. It's just a series of elements except in this case it's designed to look at every two elements as a pair.

What do you mean by it's inconsistent? Commas are the same both in dictionaries and anywhere else, they're completely optional.

Re:Pharen: A lisp that compiles to PHP by tmp48764 on Monday January 31, 2011 @07:59PM (#2163928)
I take that back. I had no idea that {"a" 1 "b" 2} works when I made that comment.