A version of Paul Graham's "Arc" is out. This is another Lisp dialect. More
info at:
http://paulgraham.com/arc.html
http://ycombinator.com/arc/tut.txt
http://arclanguage.org
If you disable sweet-expression's definition that [...] is the same as (...),
it looks like Arc and sweet-expressions could be easily used together. That
one exception is because in Arc, [... _ ...] is an abbreviation for "(fn (_)
(... _ ...))".
For example:
arc> (map [+ _ 10] '(1 2 3))
(11 12 13)
The fact that the ONLY issue is that [...] shouldn't be remapped makes me think
that perhaps I should NOT make [...] equivalent to (...), necessarily, in
sweet-expressions. That should be language-dependent; a Scheme might
do that (since R6 does), but not necessarily so.
Arc does interesting things, but for the most part it's a back-to-basics Lisp
dialect
(though with a number of differences due to rethinking). Here are two
examples from his tutorial:
(def mylen (xs)
(if (no xs)
0
(+ 1 (mylen (cdr xs)))))
(mac n-of (n expr)
(w/uniq ga
`(let ,ga nil
(repeat ,n (push ,expr ,ga))
(rev ,ga))))
Here's the same thing in sweet-expressions, which makes me think that
sweet-expressions and Arc _should_ work well together:
def mylen (xs)
if no(xs)
0
{1 + mylen(cdr(xs))}
mac n-of (n expr)
w/uniq ga
` let ,ga nil
repeat ,n push(,expr ,ga)
rev ,ga
--- David A. Wheeler
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Readable-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/readable-discuss